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