]> git.ipfire.org Git - thirdparty/gcc.git/blame - liboffloadmic/ChangeLog
gcc/
[thirdparty/gcc.git] / liboffloadmic / ChangeLog
CommitLineData
43895be5 12015-10-13 Ilya Verbin <ilya.verbin@intel.com>
2
3 * plugin/libgomp-plugin-intelmic.cpp (GOMP_OFFLOAD_dev2dev): New
4 function.
5 * plugin/offload_target_main.cpp (__offload_target_tgt2tgt): New
6 static function, register it in liboffloadmic.
7
95934137 82015-10-08 Ilya Verbin <ilya.verbin@intel.com>
9
10 * runtime/offload_engine.cpp (Engine::init_process): Use strdup instead
11 of sizeof+malloc+sprintf, check for return value.
12 * runtime/offload_env.cpp (MicEnvVar::get_env_var_kind): Check for
13 strdup return value.
14 * runtime/offload_host.cpp (__offload_init_library_once): Check for
15 strdup return value. Fix size calculation of COI_HOST_THREAD_AFFINITY.
16 * runtime/emulator/coi_device.cpp (COIProcessWaitForShutdown): Check for
17 malloc return value.
18
b30bdf28 192015-09-29 Ilya Verbin <ilya.verbin@intel.com>
20
21 * plugin/libgomp-plugin-intelmic.cpp (OFFLOAD_ACTIVE_WAIT_ENV): New
22 define.
23 (init): Set OFFLOAD_ACTIVE_WAIT env var to 0, if it is not set.
24 * runtime/emulator/coi_common.h (PIPE_HOST_PATH): Replace with ...
25 (PIPE_HOST2TGT_NAME): ... this.
26 (PIPE_TARGET_PATH): Replace with ...
27 (PIPE_TGT2HOST_NAME): ... this.
28 (MALLOCN): New define.
29 (READN): Likewise.
30 (WRITEN): Likewise.
31 (enum cmd_t): Replace CMD_RUN_FUNCTION with CMD_PIPELINE_RUN_FUNCTION.
32 Add CMD_PIPELINE_CREATE, CMD_PIPELINE_DESTROY.
33 * runtime/emulator/coi_device.cpp (engine_dir): New static variable.
34 (pipeline_thread_routine): New static function.
35 (COIProcessWaitForShutdown): Use global engine_dir instead of mic_dir.
36 Rename pipe_host and pipe_target to pipe_host2tgt and pipe_tgt2host.
37 If cmd is CMD_PIPELINE_CREATE, create a new thread for the pipeline.
38 Remove cmd == CMD_RUN_FUNCTION case.
39 * runtime/emulator/coi_device.h (COIERRORN): New define.
40 * runtime/emulator/coi_host.cpp: Include set, map, queue.
41 Replace typedefs with enums and structs.
42 (struct Function): Remove name, add num_buffers, bufs_size,
43 bufs_data_target, misc_data_len, misc_data, return_value_len,
44 return_value, completion_event.
45 (struct Callback): New.
46 (struct Process): Remove pipeline. Add pipe_host2tgt and pipe_tgt2host.
47 (struct Pipeline): Remove pipe_host and pipe_target. Add thread,
48 destroy, is_destroyed, pipe_host2tgt_path, pipe_tgt2host_path,
49 pipe_host2tgt, pipe_tgt2host, queue, process.
50 (max_pipeline_num): New static variable.
51 (pipelines): Likewise.
52 (max_event_num): Likewise.
53 (non_signalled_events): Likewise.
54 (errored_events): Likewise.
55 (callbacks): Likewise.
56 (cleanup): Do not check tmp_dirs before free.
57 (start_critical_section): New static function.
58 (finish_critical_section): Likewise.
59 (pipeline_is_destroyed): Likewise.
60 (maybe_invoke_callback): Likewise.
61 (signal_event): Likewise.
62 (get_event_result): Likewise.
63 (COIBufferCopy): Rename arguments according to headers. Add asserts.
64 Use process' main pipes, instead of pipeline's pipes. Signal completion
65 event.
66 (COIBufferCreate): Rename arguments according to headers. Add asserts.
67 Use process' main pipes, instead of pipeline's pipes.
68 (COIBufferCreateFromMemory): Rename arguments according to headers.
69 Add asserts.
70 (COIBufferDestroy): Rename arguments according to headers. Add asserts.
71 Use process' main pipes, instead of pipeline's pipes.
72 (COIBufferGetSinkAddress): Rename arguments according to headers.
73 Add asserts.
74 (COIBufferMap): Rename arguments according to headers. Add asserts.
75 Signal completion event.
76 (COIBufferRead): Likewise.
77 (COIBufferSetState): Likewise.
78 (COIBufferUnmap): Likewise.
79 (COIBufferWrite): Likewise.
80 (COIEngineGetCount): Add assert.
81 (COIEngineGetHandle): Rename arguments according to headers.
82 Add assert.
83 (COIEventWait): Rename arguments according to headers. Add asserts.
84 Implement waiting for events with zero or infinite timeout.
85 (COIEventRegisterCallback): New function.
86 (pipeline_thread_routine): New static function.
87 (COIPipelineCreate): Create a new thread for the pipeline.
88 (COIPipelineDestroy): Exit pipeline thread.
89 (COIPipelineRunFunction): Add the function into pipeline's queue,
90 instead running it here. Wait for it's completion in case of
91 synchronous execution.
92 (COIProcessCreateFromMemory): Rename arguments according to headers.
93 Add asserts. Create process' main pipes, instead of pipeline's pipes.
94 (COIProcessDestroy): Rename arguments according to headers.
95 Add asserts. Destroy all undestroyed pipelines.
96 (COIProcessGetFunctionHandles): Rename arguments according to headers.
97 Add asserts. Use process' main pipes, instead of pipeline's pipes.
98 Remove useless function names.
99 (COIProcessLoadLibraryFromMemory): Add asserts. Use process' main
100 pipes, instead of pipeline's pipes.
101 (COIProcessUnloadLibrary): Likewise.
102 (COIEngineGetInfo): Add assert.
103 * runtime/emulator/coi_host.h (COIERRORN): New define.
104
449198ac 1052015-09-28 Ilya Verbin <ilya.verbin@intel.com>
106
107 PR other/67652
108 * runtime/offload_engine.cpp (Engine::init_process): Fix sizeof.
109
5553d0c3 1102015-09-08 Ilya Verbin <ilya.verbin@intel.com>
111
112 * Makefile.am (liboffloadmic_host_la_DEPENDENCIES): Remove libcoi_host
113 and libmyo-client. liboffloadmic_host loads them dynamically.
114 * Makefile.in: Regenerate.
115 * doc/doxygen/header.tex: Merge from upstream, version 20150803
116 <https://openmprtl.org/sites/default/files/liboffload_oss_20150803.tgz>.
117 * runtime/cean_util.cpp: Likewise.
118 * runtime/cean_util.h: Likewise.
119 * runtime/coi/coi_client.cpp: Likewise.
120 * runtime/coi/coi_client.h: Likewise.
121 * runtime/coi/coi_server.cpp: Likewise.
122 * runtime/coi/coi_server.h: Likewise.
123 * runtime/compiler_if_host.cpp: Likewise.
124 * runtime/compiler_if_host.h: Likewise.
125 * runtime/compiler_if_target.cpp: Likewise.
126 * runtime/compiler_if_target.h: Likewise.
127 * runtime/dv_util.cpp: Likewise.
128 * runtime/dv_util.h: Likewise.
129 * runtime/liboffload_error.c: Likewise.
130 * runtime/liboffload_error_codes.h: Likewise.
131 * runtime/liboffload_msg.c: Likewise.
132 * runtime/liboffload_msg.h: Likewise.
133 * runtime/mic_lib.f90: Likewise.
134 * runtime/offload.h: Likewise.
135 * runtime/offload_common.cpp: Likewise.
136 * runtime/offload_common.h: Likewise.
137 * runtime/offload_engine.cpp: Likewise.
138 * runtime/offload_engine.h: Likewise.
139 * runtime/offload_env.cpp: Likewise.
140 * runtime/offload_env.h: Likewise.
141 * runtime/offload_host.cpp: Likewise.
142 * runtime/offload_host.h: Likewise.
143 * runtime/offload_iterator.h: Likewise.
144 * runtime/offload_myo_host.cpp: Likewise.
145 * runtime/offload_myo_host.h: Likewise.
146 * runtime/offload_myo_target.cpp: Likewise.
147 * runtime/offload_myo_target.h: Likewise.
148 * runtime/offload_omp_host.cpp: Likewise.
149 * runtime/offload_omp_target.cpp: Likewise.
150 * runtime/offload_orsl.cpp: Likewise.
151 * runtime/offload_orsl.h: Likewise.
152 * runtime/offload_table.cpp: Likewise.
153 * runtime/offload_table.h: Likewise.
154 * runtime/offload_target.cpp: Likewise.
155 * runtime/offload_target.h: Likewise.
156 * runtime/offload_target_main.cpp: Likewise.
157 * runtime/offload_timer.h: Likewise.
158 * runtime/offload_timer_host.cpp: Likewise.
159 * runtime/offload_timer_target.cpp: Likewise.
160 * runtime/offload_trace.cpp: Likewise.
161 * runtime/offload_trace.h: Likewise.
162 * runtime/offload_util.cpp: Likewise.
163 * runtime/offload_util.h: Likewise.
164 * runtime/ofldbegin.cpp: Likewise.
165 * runtime/ofldend.cpp: Likewise.
166 * runtime/orsl-lite/include/orsl-lite.h: Likewise.
167 * runtime/orsl-lite/lib/orsl-lite.c: Likewise.
168 * runtime/use_mpss2.txt: Likewise.
169 * include/coi/common/COIEngine_common.h: Merge from upstream, MPSS
170 version 3.5
171 <http://registrationcenter.intel.com/irc_nas/7445/mpss-src-3.5.tar>.
172 * include/coi/common/COIEvent_common.h: Likewise.
173 * include/coi/common/COIMacros_common.h: Likewise.
174 * include/coi/common/COIPerf_common.h: Likewise.
175 * include/coi/common/COIResult_common.h: Likewise.
176 * include/coi/common/COISysInfo_common.h: Likewise.
177 * include/coi/common/COITypes_common.h: Likewise.
178 * include/coi/sink/COIBuffer_sink.h: Likewise.
179 * include/coi/sink/COIPipeline_sink.h: Likewise.
180 * include/coi/sink/COIProcess_sink.h: Likewise.
181 * include/coi/source/COIBuffer_source.h: Likewise.
182 * include/coi/source/COIEngine_source.h: Likewise.
183 * include/coi/source/COIEvent_source.h: Likewise.
184 * include/coi/source/COIPipeline_source.h: Likewise.
185 * include/coi/source/COIProcess_source.h: Likewise.
186 * include/myo/myo.h: Likewise.
187 * include/myo/myoimpl.h: Likewise.
188 * include/myo/myotypes.h: Likewise.
189 * plugin/Makefile.am (myo_inc_dir): Remove.
190 (libgomp_plugin_intelmic_la_CPPFLAGS): Do not define MYO_SUPPORT.
191 (AM_CPPFLAGS): Likewise for offload_target_main.
192 * plugin/Makefile.in: Regenerate.
193 * runtime/emulator/coi_common.h: Update copyright years.
194 (OFFLOAD_EMUL_KNC_NUM_ENV): Replace with ...
195 (OFFLOAD_EMUL_NUM_ENV): ... this.
196 (enum cmd_t): Add CMD_CLOSE_LIBRARY.
197 * runtime/emulator/coi_device.cpp: Update copyright years.
198 (COIProcessWaitForShutdown): Add space between string constants.
199 Return handle to host in CMD_OPEN_LIBRARY.
200 Support CMD_CLOSE_LIBRARY.
201 * runtime/emulator/coi_device.h: Update copyright years.
202 * runtime/emulator/coi_host.cpp: Update copyright years.
203 (knc_engines_num): Replace with ...
204 (num_engines): ... this.
205 (init): Replace OFFLOAD_EMUL_KNC_NUM_ENV with OFFLOAD_EMUL_NUM_ENV.
206 (COIEngineGetCount): Replace COI_ISA_KNC with COI_ISA_MIC, and
207 knc_engines_num with num_engines.
208 (COIEngineGetHandle): Likewise.
209 (COIProcessCreateFromMemory): Add space between string constants.
210 (COIProcessCreateFromFile): New function.
211 (COIProcessLoadLibraryFromMemory): Rename arguments according to
212 COIProcess_source.h. Return handle, received from target.
213 (COIProcessUnloadLibrary): New function.
214 (COIPipelineClearCPUMask): New function.
215 (COIPipelineSetCPUMask): New function.
216 (COIEngineGetInfo): New function.
217 * runtime/emulator/coi_host.h: Update copyright years.
218 * runtime/emulator/coi_version_asm.h: Regenerate.
219 * runtime/emulator/coi_version_linker_script.map: Regenerate.
220 * runtime/emulator/myo_client.cpp: Update copyright years.
221 * runtime/emulator/myo_service.cpp: Update copyright years.
222 (myoArenaRelease): New function.
223 (myoArenaAcquire): New function.
224 (myoArenaAlignedFree): New function.
225 (myoArenaAlignedMalloc): New function.
226 * runtime/emulator/myo_service.h: Update copyright years.
227 * runtime/emulator/myo_version_asm.h: Regenerate.
228 * runtime/emulator/myo_version_linker_script.map: Regenerate.
229
d3d8e632 2302015-08-24 Nathan Sidwell <nathan@codesourcery.com>
231
232 * plugin/libgomp-plugin-intelmic.cpp (GOMP_OFFLOAD_version): New.
233 (GOMP_OFFLOAD_load_image): Add version arg and check it.
234 (GOMP_OFFLOAD_unload_image): Likewise.
235
5f74ee59 2362015-08-24 Thomas Schwinge <thomas@codesourcery.com>
237
238 * plugin/Makefile.am (include_src_dir): Set.
239 [PLUGIN_HOST] (libgomp_plugin_intelmic_la_CPPFLAGS): Use it.
240 * plugin/Makefile.in: Regenerate.
241 * plugin/libgomp-plugin-intelmic.cpp: Include "gomp-constants.h".
242
e757a6a8 2432015-07-24 Micahel Darling <darlingm@gmail.com>
244
245 PR other/66259
246 * configure: Reflects renaming of configure.in to configure.ac
247
70046055 2482015-07-17 Nathan Sidwell <nathan@acm.org>
5553d0c3 249 Ilya Verbin <ilya.verbin@intel.com>
70046055 250
251 * plugin/libgomp-plugin-intelmic.cpp (ImgDevAddrMap): Constify.
252 (offload_image, GOMP_OFFLOAD_load_image,
5553d0c3 253 GOMP_OFFLOAD_unload_image): Constify target data.
70046055 254
cacef506 2552015-07-08 Thomas Schwinge <thomas@codesourcery.com>
256
257 * plugin/Makefile.am (main_target_image.h): Change type of data
258 member of struct MainTargetImage to uint8_t.
259 * plugin/Makefile.in: Regenerate.
260
d1dba8ae 2612015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
262
263 * Makefile.in: Regenerated with automake-1.11.6.
264 * aclocal.m4: Likewise.
265 * configure: Likewise.
266 * plugin/Makefile.in: Likewise.
267 * plugin/aclocal.m4: Likewise.
268 * plugin/configure: Likewise.
269
0d8c703d 2702015-04-06 Ilya Verbin <ilya.verbin@intel.com>
271
272 * plugin/libgomp-plugin-intelmic.cpp: Include map.
273 (AddrVect, DevAddrVect, ImgDevAddrMap): New typedefs.
274 (num_devices, num_images, address_table): New static vars.
275 (num_libraries, lib_descrs): Remove static vars.
276 (set_mic_lib_path): Rename to ...
277 (init): ... this. Allocate address_table and get num_devices.
278 (GOMP_OFFLOAD_get_num_devices): return num_devices.
279 (load_lib_and_get_table): Remove static function.
280 (offload_image): New static function.
281 (GOMP_OFFLOAD_get_table): Remove function.
282 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New functions.
283
ca4c3545 2842015-01-15 Thomas Schwinge <thomas@codesourcery.com>
285
286 * plugin/libgomp-plugin-intelmic.cpp (GOMP_OFFLOAD_get_name)
287 (GOMP_OFFLOAD_get_caps, GOMP_OFFLOAD_fini_device): New functions.
288
30cc6b51 2892014-11-13 Ilya Verbin <ilya.verbin@intel.com>
290 Andrey Turetskiy <andrey.turetskiy@intel.com>
291
292 * Makefile.in: Regenerate.
293 * configure: Regenerate.
294 * configure.ac: Add subdirectory 'plugin'.
295 * plugin/Makefile.am: New file.
296 * plugin/Makefile.in: New file, generated by automake.
297 * plugin/aclocal.m4: New file, generated by aclocal.
298 * plugin/configure: New file, generated by autoconf.
299 * plugin/configure.ac: New file.
300 * plugin/libgomp-plugin-intelmic.cpp: New file.
301 * plugin/offload_target_main.cpp: New file.
302
d3a7dd32 3032014-11-13 Kirill Yukhin <kirill.yukhin@intel.com>
304
305 Initial commit. Imported from upstream:
306 https://www.openmprtl.org/sites/default/files/liboffload_oss.tgz
307 * Makefile.am: New file.
308 * Makefile.in: New file, generated by automake.
309 * aclocal.m4: New file, generated by aclocal.
310 * configure: New file, generated by autoconf.
311 * configure.ac: New file.
312 * configure.tgt: Ditto.
313 * doc/doxygen/config: Ditto.
314 * doc/doxygen/header.tex: Ditto.
315 * include/coi/common/COIEngine_common.h: Ditto.
316 * include/coi/common/COIMacros_common.h: Ditto.
317 * include/coi/common/COIPerf_common.h : Ditto.
318 * include/coi/common/COIResult_common.h : Ditto.
319 * include/coi/common/COITypes_common.h: Ditto.
320 * include/coi/sink/COIBuffer_sink.h: Ditto.
321 * include/coi/sink/COIPipeline_sink.h: Ditto.
322 * include/coi/sink/COIProcess_sink.h: Ditto.
323 * include/coi/source/COIBuffer_source.h: Ditto.
324 * include/coi/source/COIEngine_source.h: Ditto.
325 * include/coi/source/COIEvent_source.h: Ditto.
326 * include/coi/source/COIPipeline_source.h: Ditto.
327 * include/coi/source/COIProcess_source.h: Ditto.
328 * include/myo/myo.h: Ditto.
329 * include/myo/myoimpl.h: Ditto.
330 * include/myo/myotypes.h: Ditto.
331 * liboffloadmic_host.spec.in: Ditto.
332 * liboffloadmic_target.spec.in: Ditto.
333 * runtime/cean_util.cpp: Ditto.
334 * runtime/cean_util.h: Ditto.
335 * runtime/coi/coi_client.cpp: Ditto.
336 * runtime/coi/coi_client.h: Ditto.
337 * runtime/coi/coi_server.cpp: Ditto.
338 * runtime/coi/coi_server.h: Ditto.
339 * runtime/compiler_if_host.cpp: Ditto.
340 * runtime/compiler_if_host.h: Ditto.
341 * runtime/compiler_if_target.cpp: Ditto.
342 * runtime/compiler_if_target.h: Ditto.
343 * runtime/dv_util.cpp: Ditto.
344 * runtime/dv_util.h: Ditto.
345 * runtime/emulator/coi_common.h: Ditto.
346 * runtime/emulator/coi_device.cpp: Ditto.
347 * runtime/emulator/coi_device.h: Ditto.
348 * runtime/emulator/coi_host.cpp: Ditto.
349 * runtime/emulator/coi_host.h: Ditto.
350 * runtime/emulator/coi_version_asm.h: Ditto.
351 * runtime/emulator/coi_version_linker_script.map: Ditto.
352 * runtime/emulator/myo_client.cpp: Ditto.
353 * runtime/emulator/myo_service.cpp: Ditto.
354 * runtime/emulator/myo_service.h: Ditto.
355 * runtime/emulator/myo_version_asm.h: Ditto.
356 * runtime/emulator/myo_version_linker_script.map: Ditto.
357 * runtime/liboffload_error.c: Ditto.
358 * runtime/liboffload_error_codes.h: Ditto.
359 * runtime/liboffload_msg.c: Ditto.
360 * runtime/liboffload_msg.h: Ditto.
361 * runtime/mic_lib.f90: Ditto.
362 * runtime/offload.h: Ditto.
363 * runtime/offload_common.cpp: Ditto.
364 * runtime/offload_common.h: Ditto.
365 * runtime/offload_engine.cpp: Ditto.
366 * runtime/offload_engine.h: Ditto.
367 * runtime/offload_env.cpp: Ditto.
368 * runtime/offload_env.h: Ditto.
369 * runtime/offload_host.cpp: Ditto.
370 * runtime/offload_host.h: Ditto.
371 * runtime/offload_myo_host.cpp: Ditto.
372 * runtime/offload_myo_host.h: Ditto.
373 * runtime/offload_myo_target.cpp: Ditto.
374 * runtime/offload_myo_target.h: Ditto.
375 * runtime/offload_omp_host.cpp: Ditto.
376 * runtime/offload_omp_target.cpp: Ditto.
377 * runtime/offload_orsl.cpp: Ditto.
378 * runtime/offload_orsl.h: Ditto.
379 * runtime/offload_table.cpp: Ditto.
380 * runtime/offload_table.h: Ditto.
381 * runtime/offload_target.cpp: Ditto.
382 * runtime/offload_target.h: Ditto.
383 * runtime/offload_target_main.cpp: Ditto.
384 * runtime/offload_timer.h: Ditto.
385 * runtime/offload_timer_host.cpp: Ditto.
386 * runtime/offload_timer_target.cpp: Ditto.
387 * runtime/offload_trace.cpp: Ditto.
388 * runtime/offload_trace.h: Ditto.
389 * runtime/offload_util.cpp: Ditto.
390 * runtime/offload_util.h: Ditto.
391 * runtime/ofldbegin.cpp: Ditto.
392 * runtime/ofldend.cpp: Ditto.
393 * runtime/orsl-lite/include/orsl-lite.h: Ditto.
394 * runtime/orsl-lite/lib/orsl-lite.c: Ditto.
395 * runtime/orsl-lite/version.txt: Ditto.
396 * runtime/use_mpss2.txt: Ditto.