compiler: only build thunk struct type when it is needed
[official-gcc.git] / liboffloadmic / ChangeLog
blobf33f0168a80fc194aea591edf8d9c297f7f8e99f
1 2022-09-09  Tobias Burnus  <tobias@codesourcery.com>
3         * plugin/libgomp-plugin-intelmic.cpp (GOMP_OFFLOAD_load_image):
4         Add (unused) uint64_t **rev_fn_table argument.
6 2022-08-25  Martin Liska  <mliska@suse.cz>
8         * configure: Regenerate.
9         * plugin/configure: Regenerate.
11 2022-07-04  Tobias Burnus  <tobias@codesourcery.com>
12             Chung-Lin Tang  <cltang@codesourcery.com>
13             Thomas Schwinge  <thomas@codesourcery.com>
15         * plugin/libgomp-plugin-intelmic.cpp (GOMP_OFFLOAD_get_num_devices):
16         Return -1 when device available but omp_requires_mask != 0.
18 2021-10-19  Martin Liska  <mliska@suse.cz>
20         * include/coi/source/COIBuffer_source.h: Convert 2 chars to
21         unicode.
23 2021-05-25  Richard Biener  <rguenther@suse.de>
25         PR libgomp/100747
26         * configure: Make executable.
27         * plugin/configure: Likewise.
29 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
31         * configure: Re-generate.
32         * plugin/configure: Re-generate.
34 2020-11-29  John David Anglin  <danglin@gcc.gnu.org>
36         * configure: Regenerate.
37         * plugin/configure: Regenerate.
39 2020-05-05  Martin Liska  <mliska@suse.cz>
41         PR other/89860
42         * runtime/offload_target.cpp: Put index check
43         before its use.
45 2020-01-24  Maciej W. Rozycki  <macro@wdc.com>
47         * plugin/configure.ac: Handle `--with-toolexeclibdir='.
48         * plugin/Makefile.in: Regenerate.
49         * plugin/aclocal.m4: Regenerate.
50         * plugin/configure: Regenerate.
51         * configure.ac: Handle `--with-toolexeclibdir='.
52         * Makefile.in: Regenerate.
53         * aclocal.m4: Regenerate.
54         * configure: Regenerate.
56 2020-01-10  Thomas Schwinge  <thomas@codesourcery.com>
58         * plugin/libgomp-plugin-intelmic.cpp (GOMP_OFFLOAD_get_property):
59         Remove.
61 2019-12-22  Maciej W. Rozycki  <macro@codesourcery.com>
62             Frederik Harwath  <frederik@codesourcery.com>
63             Thomas Schwinge  <tschwinge@codesourcery.com>
65         liboffloadmic/
66         * plugin/libgomp-plugin-intelmic.cpp (GOMP_OFFLOAD_get_property):
67         New function.
69 2019-10-01  Maciej W. Rozycki  <macro@wdc.com>
71         * plugin/configure: Regenerate.
73 2019-09-27  Maciej W. Rozycki  <macro@wdc.com>
75         * configure: Regenerate.
77 2019-01-09  Sandra Loosemore  <sandra@codesourcery.com>
79         PR other/16615
81         * include/coi/common/COIResult_common.h: Mechanically replace
82         "can not" with "cannot".
83         * include/coi/source/COIBuffer_source.h: Likewise.
85 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
87         * runtime/offload.h (omp_target_is_present, omp_target_memcpy)
88         (omp_target_memcpy_rect, omp_target_associate_ptr)
89         (omp_target_disassociate_ptr): Adjust to libgomp changes.
91 2018-10-31  Joseph Myers  <joseph@codesourcery.com>
93         PR bootstrap/82856
94         * Makefile.am: Include multilib.am.
95         * configure.ac: Remove AC_PREREQ.
96         * plugin/Makefile.am: Include multilib.am.
97         * plugin/configure.ac: Remove AC_PREREQ.
98         * Makefile.in, aclocal.m4, configure, plugin/Makefile.in,
99         plugin/aclocal.m4, plugin/configure: Regenerate.
101 2018-04-18  David Malcolm  <dmalcolm@redhat.com>
103         PR jit/85384
104         * configure: Regenerate.
105         * plugin/configure: Regenerate.
107 2017-01-31  Thomas Schwinge  <thomas@codesourcery.com>
109         * plugin/libgomp-plugin-intelmic.cpp (GOMP_OFFLOAD_get_type): Fix
110         return type.
111         (GOMP_OFFLOAD_load_image): Fix argument types.
113 2017-01-21  Jakub Jelinek  <jakub@redhat.com>
115         PR other/79046
116         * plugin/configure.ac: Add GCC_BASE_VER.
117         * plugin/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
118         of cat to get version from BASE-VER file.
119         * plugin/configure: Regenerated.
120         * plugin/aclocal.m4: Regenerated.
121         * plugin/Makefile.in: Regenerated.
123 2017-01-20  Jakub Jelinek  <jakub@redhat.com>
125         PR other/79046
126         * aclocal.m4: Regenerated.
127         * Makefile.in: Regenerated.
129 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
131         PR other/79046
132         * configure.ac: Add GCC_BASE_VER.
133         * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
134         get version from BASE-VER file.
135         * aclocal.m4: Include ../config/acx.m4.
136         * configure: Regenerated.
137         * Makefile.in: Regenerated.
139 2016-11-15  Matthias Klose  <doko@ubuntu.com>
141         * configure: Regenerate.
143 2016-07-21  Ilya Verbin  <ilya.verbin@intel.com>
145         * Makefile.am (myo_inc_dir): Remove.
146         (toolexeclib_LTLIBRARIES): Remove libmyo-client.la and
147         libmyo-service.la.
148         (liboffloadmic_cppflags): Remove -DMYO_SUPPORT.
149         (liboffloadmic_host_la_SOURCES): Remove offload_myo_host.cpp.
150         (liboffloadmic_target_la_SOURCES): Remove offload_myo_target.cpp.
151         (liboffloadmic_target_la_LIBADD): Remove libmyo-service.la.
152         (libmyo_client_la_SOURCES, libmyo_service_la_SOURCES): Remove.
153         (libmyo_client_la_DEPENDENCIES, libmyo_service_la_DEPENDENCIES): Remove.
154         (libmyo_client_la_CPPFLAGS, libmyo_service_la_CPPFLAGS): Remove.
155         (libmyo_client_la_LDFLAGS, libmyo_service_la_LDFLAGS): Remove.
156         * Makefile.in: Regenerate.
157         * doc/doxygen/header.tex: Merge from upstream, version 20160715
158         <https://openmprtl.org/sites/default/files/liboffload_oss_20160715.tgz>.
159         * runtime/cean_util.cpp: Likewise.
160         * runtime/cean_util.h: Likewise.
161         * runtime/coi/coi_client.cpp: Likewise.
162         * runtime/coi/coi_client.h: Likewise.
163         * runtime/coi/coi_server.cpp: Likewise.
164         * runtime/coi/coi_server.h: Likewise.
165         * runtime/compiler_if_host.cpp: Likewise.
166         * runtime/compiler_if_host.h: Likewise.
167         * runtime/compiler_if_target.cpp: Likewise.
168         * runtime/compiler_if_target.h: Likewise.
169         * runtime/dv_util.cpp: Likewise.
170         * runtime/dv_util.h: Likewise.
171         * runtime/liboffload_error.c: Likewise.
172         * runtime/liboffload_error_codes.h: Likewise.
173         * runtime/liboffload_msg.c: Likewise.
174         * runtime/liboffload_msg.h: Likewise.
175         * runtime/mic_lib.f90: Likewise.
176         * runtime/offload.h: Likewise.
177         * runtime/offload_common.cpp: Likewise.
178         * runtime/offload_common.h: Likewise.
179         * runtime/offload_engine.cpp: Likewise.
180         * runtime/offload_engine.h: Likewise.
181         * runtime/offload_env.cpp: Likewise.
182         * runtime/offload_env.h: Likewise.
183         * runtime/offload_host.cpp: Likewise.
184         * runtime/offload_host.h: Likewise.
185         * runtime/offload_iterator.h: Likewise.
186         * runtime/offload_myo_host.cpp: Likewise.
187         * runtime/offload_myo_host.h: Likewise.
188         * runtime/offload_myo_target.cpp: Likewise.
189         * runtime/offload_myo_target.h: Likewise.
190         * runtime/offload_omp_host.cpp: Likewise.
191         * runtime/offload_omp_target.cpp: Likewise.
192         * runtime/offload_orsl.cpp: Likewise.
193         * runtime/offload_orsl.h: Likewise.
194         * runtime/offload_table.cpp: Likewise.
195         * runtime/offload_table.h: Likewise.
196         * runtime/offload_target.cpp: Likewise.
197         * runtime/offload_target.h: Likewise.
198         * runtime/offload_target_main.cpp: Likewise.
199         * runtime/offload_timer.h: Likewise.
200         * runtime/offload_timer_host.cpp: Likewise.
201         * runtime/offload_timer_target.cpp: Likewise.
202         * runtime/offload_trace.cpp: Likewise.
203         * runtime/offload_trace.h: Likewise.
204         * runtime/offload_util.cpp: Likewise.
205         * runtime/offload_util.h: Likewise.
206         * runtime/ofldbegin.cpp: Likewise.
207         * runtime/ofldend.cpp: Likewise.
208         * runtime/orsl-lite/include/orsl-lite.h: Likewise.
209         * runtime/orsl-lite/lib/orsl-lite.c: Likewise.
210         * runtime/use_mpss2.txt: Remove.
211         * include/coi/common/COIEngine_common.h: Merge from upstream, MPSS
212         version 3.7.1
213         <http://registrationcenter-download.intel.com/akdlm/irc_nas/9226/
214         mpss-3.7.1-linux.tar>.
215         * include/coi/common/COIEvent_common.h: Likewise.
216         * include/coi/common/COIMacros_common.h: Likewise.
217         * include/coi/common/COIPerf_common.h: Likewise.
218         * include/coi/common/COIResult_common.h: Likewise.
219         * include/coi/common/COISysInfo_common.h: Likewise.
220         * include/coi/common/COITypes_common.h: Likewise.
221         * include/coi/sink/COIBuffer_sink.h: Likewise.
222         * include/coi/sink/COIPipeline_sink.h: Likewise.
223         * include/coi/sink/COIProcess_sink.h: Likewise.
224         * include/coi/source/COIBuffer_source.h: Likewise.
225         * include/coi/source/COIEngine_source.h: Likewise.
226         * include/coi/source/COIEvent_source.h: Likewise.
227         * include/coi/source/COIPipeline_source.h: Likewise.
228         * include/coi/source/COIProcess_source.h: Likewise.
229         * include/myo/myo.h: Remove.
230         * include/myo/myoimpl.h: Remove.
231         * include/myo/myotypes.h: Remove.
232         * plugin/Makefile.am (AM_LDFLAGS): Remove -lmyo-service.
233         * plugin/Makefile.in: Regenerate.
234         * plugin/libgomp-plugin-intelmic.cpp (LD_LIBRARY_PATH_ENV): Remove.
235         (MIC_LD_LIBRARY_PATH_ENV): Remove.
236         (init): Do not set MIC_LD_LIBRARY_PATH.  Now liboffloadmic uses only
237         LD_LIBRARY_PATH.
238         * plugin/offload_target_main.cpp: Update copyright years.
239         * runtime/emulator/coi_common.h: Likewise.
240         * runtime/emulator/coi_device.cpp: Likewise.
241         * runtime/emulator/coi_device.h: Likewise.
242         * runtime/emulator/coi_host.cpp: Likewise.
243         (COIBufferCreate): Allow COI_BUFFER_OPENCL.
244         (COIEngineGetInfo): Return COI_DEVICE_KNL instead of COI_ISA_x86_64.
245         * runtime/emulator/coi_host.h: Update copyright years.
246         * runtime/emulator/coi_version_asm.h: Likewise.
247         * runtime/emulator/coi_version_linker_script.map: Likewise.
248         * runtime/emulator/myo_client.cpp: Remove.
249         * runtime/emulator/myo_service.cpp: Remove.
250         * runtime/emulator/myo_service.h: Remove.
251         * runtime/emulator/myo_version_asm.h: Remove.
252         * runtime/emulator/myo_version_linker_script.map: Remove.
254 2016-05-26  Chung-Lin Tang  <cltang@codesourcery.com>
256         * plugin/libgomp-plugin-intelmic.cpp (offload): Change return type
257         to bool, adjust return code.
258         (GOMP_OFFLOAD_init_device): Likewise.
259         (GOMP_OFFLOAD_fini_device): Likewise.
260         (get_target_table): Likewise.
261         (offload_image): Likwise.
262         (GOMP_OFFLOAD_load_image): Adjust call to offload_image(), change
263         to return -1 on error.
264         (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust return
265         code.
266         (GOMP_OFFLOAD_alloc): Likewise.
267         (GOMP_OFFLOAD_free): Likewise.
268         (GOMP_OFFLOAD_host2dev): Likewise.
269         (GOMP_OFFLOAD_dev2host): Likewise.
270         (GOMP_OFFLOAD_dev2dev): Likewise.
272 2016-01-20  Ilya Verbin  <ilya.verbin@intel.com>
274         * plugin/libgomp-plugin-intelmic.cpp (GOMP_OFFLOAD_run): Pass extra NULL
275         to GOMP_OFFLOAD_async_run.
277 2016-01-19  Martin Jambor  <mjambor@suse.cz>
279         * plugin/libgomp-plugin-intelmic.cpp (GOMP_OFFLOAD_async_run): New
280         unused parameter.
281         (GOMP_OFFLOAD_run): Likewise.
283 2015-12-14  Ilya Verbin  <ilya.verbin@intel.com>
285         * plugin/libgomp-plugin-intelmic.cpp (unregister_main_image): Remove.
286         (register_main_image): Do not call unregister_main_image at exit.
287         (GOMP_OFFLOAD_fini_device): Allow for OpenMP.  Unregister main image.
289 2015-11-19  Ilya Verbin  <ilya.verbin@intel.com>
291         * plugin/libgomp-plugin-intelmic.cpp (struct TargetImageDesc): New.
292         (ImgDescMap): New typedef.
293         (image_descriptors): New static var.
294         (init): Allocate image_descriptors.
295         (offload): Remove vars2 argument.  Pass NULL to __offload_offload1
296         instead of vars2.
297         (unregister_main_image): New static function.
298         (register_main_image): Call unregister_main_image at exit.
299         (GOMP_OFFLOAD_init_device): Print device number, fix offload args.
300         (GOMP_OFFLOAD_fini_device): Likewise.
301         (get_target_table): Remove vd1g and vd2g, don't pass them to offload.
302         (offload_image): Remove declaration of the struct TargetImage.
303         Free table.  Insert new descriptor into image_descriptors.
304         (GOMP_OFFLOAD_unload_image): Call __offload_unregister_image, free
305         the corresponding descriptor, and remove it from address_table and
306         image_descriptors.
307         (GOMP_OFFLOAD_alloc): Print device number, remove vd1g.
308         (GOMP_OFFLOAD_free): Likewise.
309         (GOMP_OFFLOAD_host2dev): Print device number, remove vd1g and vd2g.
310         (GOMP_OFFLOAD_dev2host): Likewise.
311         (GOMP_OFFLOAD_run): Print device number, remove vd1g.
312         * plugin/offload_target_main.cpp (__offload_target_table_p1): Remove
313         vd2, don't pass it to __offload_target_enter.
314         (__offload_target_table_p2): Likewise.
315         (__offload_target_alloc): Likewise.
316         (__offload_target_free): Likewise.
317         (__offload_target_host2tgt_p1): Likewise.
318         (__offload_target_host2tgt_p2): Likewise.
319         (__offload_target_tgt2host_p1): Likewise.
320         (__offload_target_tgt2host_p2): Likewise.
321         (__offload_target_run): Likewise.
322         (__offload_target_tgt2tgt): Remove vd1g, don't pass it to
323         __offload_target_enter.
325 2015-11-14  Ilya Verbin  <ilya.verbin@intel.com>
327         * runtime/offload_host.cpp (task_completion_callback): New
328         variable.
329         (offload_proxy_task_completed_ooo): Call task_completion_callback.
330         (__offload_register_task_callback): New function.
331         * runtime/offload_host.h (__offload_register_task_callback): New
332         declaration.
333         * plugin/libgomp-plugin-intelmic.cpp (offload): Add async_data
334         argument, handle async offloading.
335         (register_main_image): Call register_main_image.
336         (GOMP_OFFLOAD_init_device, get_target_table, GOMP_OFFLOAD_alloc,
337         GOMP_OFFLOAD_free, GOMP_OFFLOAD_host2dev, GOMP_OFFLOAD_dev2host,
338         GOMP_OFFLOAD_dev2dev): Adjust offload callers.
339         (GOMP_OFFLOAD_async_run): New function.
340         (GOMP_OFFLOAD_run): Implement using GOMP_OFFLOAD_async_run.
342 2015-10-26  Ilya Verbin  <ilya.verbin@intel.com>
343             Aleksander Ivanushenko  <aleksander.ivanushenko@intel.com>
345         * runtime/offload_host.cpp (OffloadDescriptor::setup_misc_data): Use
346         calloc instead of malloc.
347         (__offload_fini_library): Set mic_engines_total to zero.
349 2015-10-13  Ilya Verbin  <ilya.verbin@intel.com>
351         * plugin/libgomp-plugin-intelmic.cpp (GOMP_OFFLOAD_dev2dev): New
352         function.
353         * plugin/offload_target_main.cpp (__offload_target_tgt2tgt): New
354         static function, register it in liboffloadmic.
356 2015-10-08  Ilya Verbin  <ilya.verbin@intel.com>
358         * runtime/offload_engine.cpp (Engine::init_process): Use strdup instead
359         of sizeof+malloc+sprintf, check for return value.
360         * runtime/offload_env.cpp (MicEnvVar::get_env_var_kind): Check for
361         strdup return value.
362         * runtime/offload_host.cpp (__offload_init_library_once): Check for
363         strdup return value.  Fix size calculation of COI_HOST_THREAD_AFFINITY.
364         * runtime/emulator/coi_device.cpp (COIProcessWaitForShutdown): Check for
365         malloc return value.
367 2015-09-29  Ilya Verbin  <ilya.verbin@intel.com>
369         * plugin/libgomp-plugin-intelmic.cpp (OFFLOAD_ACTIVE_WAIT_ENV): New
370         define.
371         (init): Set OFFLOAD_ACTIVE_WAIT env var to 0, if it is not set.
372         * runtime/emulator/coi_common.h (PIPE_HOST_PATH): Replace with ...
373         (PIPE_HOST2TGT_NAME): ... this.
374         (PIPE_TARGET_PATH): Replace with ...
375         (PIPE_TGT2HOST_NAME): ... this.
376         (MALLOCN): New define.
377         (READN): Likewise.
378         (WRITEN): Likewise.
379         (enum cmd_t): Replace CMD_RUN_FUNCTION with CMD_PIPELINE_RUN_FUNCTION.
380         Add CMD_PIPELINE_CREATE, CMD_PIPELINE_DESTROY.
381         * runtime/emulator/coi_device.cpp (engine_dir): New static variable.
382         (pipeline_thread_routine): New static function.
383         (COIProcessWaitForShutdown): Use global engine_dir instead of mic_dir.
384         Rename pipe_host and pipe_target to pipe_host2tgt and pipe_tgt2host.
385         If cmd is CMD_PIPELINE_CREATE, create a new thread for the pipeline.
386         Remove cmd == CMD_RUN_FUNCTION case.
387         * runtime/emulator/coi_device.h (COIERRORN): New define.
388         * runtime/emulator/coi_host.cpp: Include set, map, queue.
389         Replace typedefs with enums and structs.
390         (struct Function): Remove name, add num_buffers, bufs_size,
391         bufs_data_target, misc_data_len, misc_data, return_value_len,
392         return_value, completion_event.
393         (struct Callback): New.
394         (struct Process): Remove pipeline.  Add pipe_host2tgt and pipe_tgt2host.
395         (struct Pipeline): Remove pipe_host and pipe_target.  Add thread,
396         destroy, is_destroyed, pipe_host2tgt_path, pipe_tgt2host_path,
397         pipe_host2tgt, pipe_tgt2host, queue, process.
398         (max_pipeline_num): New static variable.
399         (pipelines): Likewise.
400         (max_event_num): Likewise.
401         (non_signalled_events): Likewise.
402         (errored_events): Likewise.
403         (callbacks): Likewise.
404         (cleanup): Do not check tmp_dirs before free.
405         (start_critical_section): New static function.
406         (finish_critical_section): Likewise.
407         (pipeline_is_destroyed): Likewise.
408         (maybe_invoke_callback): Likewise.
409         (signal_event): Likewise.
410         (get_event_result): Likewise.
411         (COIBufferCopy): Rename arguments according to headers.  Add asserts.
412         Use process' main pipes, instead of pipeline's pipes.  Signal completion
413         event.
414         (COIBufferCreate): Rename arguments according to headers.  Add asserts.
415         Use process' main pipes, instead of pipeline's pipes.
416         (COIBufferCreateFromMemory): Rename arguments according to headers.
417         Add asserts.
418         (COIBufferDestroy): Rename arguments according to headers.  Add asserts.
419         Use process' main pipes, instead of pipeline's pipes.
420         (COIBufferGetSinkAddress): Rename arguments according to headers.
421         Add asserts.
422         (COIBufferMap): Rename arguments according to headers.  Add asserts.
423         Signal completion event.
424         (COIBufferRead): Likewise.
425         (COIBufferSetState): Likewise.
426         (COIBufferUnmap): Likewise.
427         (COIBufferWrite): Likewise.
428         (COIEngineGetCount): Add assert.
429         (COIEngineGetHandle): Rename arguments according to headers.
430         Add assert.
431         (COIEventWait): Rename arguments according to headers.  Add asserts.
432         Implement waiting for events with zero or infinite timeout.
433         (COIEventRegisterCallback): New function.
434         (pipeline_thread_routine): New static function.
435         (COIPipelineCreate): Create a new thread for the pipeline.
436         (COIPipelineDestroy): Exit pipeline thread.
437         (COIPipelineRunFunction): Add the function into pipeline's queue,
438         instead running it here.  Wait for it's completion in case of
439         synchronous execution.
440         (COIProcessCreateFromMemory): Rename arguments according to headers.
441         Add asserts.  Create process' main pipes, instead of pipeline's pipes.
442         (COIProcessDestroy): Rename arguments according to headers.
443         Add asserts.  Destroy all undestroyed pipelines.
444         (COIProcessGetFunctionHandles): Rename arguments according to headers.
445         Add asserts.  Use process' main pipes, instead of pipeline's pipes.
446         Remove useless function names.
447         (COIProcessLoadLibraryFromMemory): Add asserts.  Use process' main
448         pipes, instead of pipeline's pipes.
449         (COIProcessUnloadLibrary): Likewise.
450         (COIEngineGetInfo): Add assert.
451         * runtime/emulator/coi_host.h (COIERRORN): New define.
453 2015-09-28  Ilya Verbin  <ilya.verbin@intel.com>
455         PR other/67652
456         * runtime/offload_engine.cpp (Engine::init_process): Fix sizeof.
458 2015-09-08  Ilya Verbin  <ilya.verbin@intel.com>
460         * Makefile.am (liboffloadmic_host_la_DEPENDENCIES): Remove libcoi_host
461         and libmyo-client.  liboffloadmic_host loads them dynamically.
462         * Makefile.in: Regenerate.
463         * doc/doxygen/header.tex: Merge from upstream, version 20150803
464         <https://openmprtl.org/sites/default/files/liboffload_oss_20150803.tgz>.
465         * runtime/cean_util.cpp: Likewise.
466         * runtime/cean_util.h: Likewise.
467         * runtime/coi/coi_client.cpp: Likewise.
468         * runtime/coi/coi_client.h: Likewise.
469         * runtime/coi/coi_server.cpp: Likewise.
470         * runtime/coi/coi_server.h: Likewise.
471         * runtime/compiler_if_host.cpp: Likewise.
472         * runtime/compiler_if_host.h: Likewise.
473         * runtime/compiler_if_target.cpp: Likewise.
474         * runtime/compiler_if_target.h: Likewise.
475         * runtime/dv_util.cpp: Likewise.
476         * runtime/dv_util.h: Likewise.
477         * runtime/liboffload_error.c: Likewise.
478         * runtime/liboffload_error_codes.h: Likewise.
479         * runtime/liboffload_msg.c: Likewise.
480         * runtime/liboffload_msg.h: Likewise.
481         * runtime/mic_lib.f90: Likewise.
482         * runtime/offload.h: Likewise.
483         * runtime/offload_common.cpp: Likewise.
484         * runtime/offload_common.h: Likewise.
485         * runtime/offload_engine.cpp: Likewise.
486         * runtime/offload_engine.h: Likewise.
487         * runtime/offload_env.cpp: Likewise.
488         * runtime/offload_env.h: Likewise.
489         * runtime/offload_host.cpp: Likewise.
490         * runtime/offload_host.h: Likewise.
491         * runtime/offload_iterator.h: Likewise.
492         * runtime/offload_myo_host.cpp: Likewise.
493         * runtime/offload_myo_host.h: Likewise.
494         * runtime/offload_myo_target.cpp: Likewise.
495         * runtime/offload_myo_target.h: Likewise.
496         * runtime/offload_omp_host.cpp: Likewise.
497         * runtime/offload_omp_target.cpp: Likewise.
498         * runtime/offload_orsl.cpp: Likewise.
499         * runtime/offload_orsl.h: Likewise.
500         * runtime/offload_table.cpp: Likewise.
501         * runtime/offload_table.h: Likewise.
502         * runtime/offload_target.cpp: Likewise.
503         * runtime/offload_target.h: Likewise.
504         * runtime/offload_target_main.cpp: Likewise.
505         * runtime/offload_timer.h: Likewise.
506         * runtime/offload_timer_host.cpp: Likewise.
507         * runtime/offload_timer_target.cpp: Likewise.
508         * runtime/offload_trace.cpp: Likewise.
509         * runtime/offload_trace.h: Likewise.
510         * runtime/offload_util.cpp: Likewise.
511         * runtime/offload_util.h: Likewise.
512         * runtime/ofldbegin.cpp: Likewise.
513         * runtime/ofldend.cpp: Likewise.
514         * runtime/orsl-lite/include/orsl-lite.h: Likewise.
515         * runtime/orsl-lite/lib/orsl-lite.c: Likewise.
516         * runtime/use_mpss2.txt: Likewise.
517         * include/coi/common/COIEngine_common.h: Merge from upstream, MPSS
518         version 3.5
519         <http://registrationcenter.intel.com/irc_nas/7445/mpss-src-3.5.tar>.
520         * include/coi/common/COIEvent_common.h: Likewise.
521         * include/coi/common/COIMacros_common.h: Likewise.
522         * include/coi/common/COIPerf_common.h: Likewise.
523         * include/coi/common/COIResult_common.h: Likewise.
524         * include/coi/common/COISysInfo_common.h: Likewise.
525         * include/coi/common/COITypes_common.h: Likewise.
526         * include/coi/sink/COIBuffer_sink.h: Likewise.
527         * include/coi/sink/COIPipeline_sink.h: Likewise.
528         * include/coi/sink/COIProcess_sink.h: Likewise.
529         * include/coi/source/COIBuffer_source.h: Likewise.
530         * include/coi/source/COIEngine_source.h: Likewise.
531         * include/coi/source/COIEvent_source.h: Likewise.
532         * include/coi/source/COIPipeline_source.h: Likewise.
533         * include/coi/source/COIProcess_source.h: Likewise.
534         * include/myo/myo.h: Likewise.
535         * include/myo/myoimpl.h: Likewise.
536         * include/myo/myotypes.h: Likewise.
537         * plugin/Makefile.am (myo_inc_dir): Remove.
538         (libgomp_plugin_intelmic_la_CPPFLAGS): Do not define MYO_SUPPORT.
539         (AM_CPPFLAGS): Likewise for offload_target_main.
540         * plugin/Makefile.in: Regenerate.
541         * runtime/emulator/coi_common.h: Update copyright years.
542         (OFFLOAD_EMUL_KNC_NUM_ENV): Replace with ...
543         (OFFLOAD_EMUL_NUM_ENV): ... this.
544         (enum cmd_t): Add CMD_CLOSE_LIBRARY.
545         * runtime/emulator/coi_device.cpp: Update copyright years.
546         (COIProcessWaitForShutdown): Add space between string constants.
547         Return handle to host in CMD_OPEN_LIBRARY.
548         Support CMD_CLOSE_LIBRARY.
549         * runtime/emulator/coi_device.h: Update copyright years.
550         * runtime/emulator/coi_host.cpp: Update copyright years.
551         (knc_engines_num): Replace with ...
552         (num_engines): ... this.
553         (init): Replace OFFLOAD_EMUL_KNC_NUM_ENV with OFFLOAD_EMUL_NUM_ENV.
554         (COIEngineGetCount): Replace COI_ISA_KNC with COI_ISA_MIC, and
555         knc_engines_num with num_engines.
556         (COIEngineGetHandle): Likewise.
557         (COIProcessCreateFromMemory): Add space between string constants.
558         (COIProcessCreateFromFile): New function.
559         (COIProcessLoadLibraryFromMemory): Rename arguments according to
560         COIProcess_source.h.  Return handle, received from target.
561         (COIProcessUnloadLibrary): New function.
562         (COIPipelineClearCPUMask): New function.
563         (COIPipelineSetCPUMask): New function.
564         (COIEngineGetInfo): New function.
565         * runtime/emulator/coi_host.h: Update copyright years.
566         * runtime/emulator/coi_version_asm.h: Regenerate.
567         * runtime/emulator/coi_version_linker_script.map: Regenerate.
568         * runtime/emulator/myo_client.cpp: Update copyright years.
569         * runtime/emulator/myo_service.cpp: Update copyright years.
570         (myoArenaRelease): New function.
571         (myoArenaAcquire): New function.
572         (myoArenaAlignedFree): New function.
573         (myoArenaAlignedMalloc): New function.
574         * runtime/emulator/myo_service.h: Update copyright years.
575         * runtime/emulator/myo_version_asm.h: Regenerate.
576         * runtime/emulator/myo_version_linker_script.map: Regenerate.
578 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
580         * plugin/libgomp-plugin-intelmic.cpp (GOMP_OFFLOAD_version): New.
581         (GOMP_OFFLOAD_load_image): Add version arg and check it.
582         (GOMP_OFFLOAD_unload_image): Likewise.
584 2015-08-24  Thomas Schwinge  <thomas@codesourcery.com>
586         * plugin/Makefile.am (include_src_dir): Set.
587         [PLUGIN_HOST] (libgomp_plugin_intelmic_la_CPPFLAGS): Use it.
588         * plugin/Makefile.in: Regenerate.
589         * plugin/libgomp-plugin-intelmic.cpp: Include "gomp-constants.h".
591 2015-07-24  Micahel Darling  <darlingm@gmail.com>
593         PR other/66259
594         * configure: Reflects renaming of configure.in to configure.ac
596 2015-07-17  Nathan Sidwell  <nathan@acm.org>
597             Ilya Verbin  <ilya.verbin@intel.com>
599         * plugin/libgomp-plugin-intelmic.cpp (ImgDevAddrMap): Constify.
600         (offload_image, GOMP_OFFLOAD_load_image,
601         GOMP_OFFLOAD_unload_image): Constify target data.
603 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
605         * plugin/Makefile.am (main_target_image.h): Change type of data
606         member of struct MainTargetImage to uint8_t.
607         * plugin/Makefile.in: Regenerate.
609 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
611         * Makefile.in: Regenerated with automake-1.11.6.
612         * aclocal.m4: Likewise.
613         * configure: Likewise.
614         * plugin/Makefile.in: Likewise.
615         * plugin/aclocal.m4: Likewise.
616         * plugin/configure: Likewise.
618 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
620         * plugin/libgomp-plugin-intelmic.cpp: Include map.
621         (AddrVect, DevAddrVect, ImgDevAddrMap): New typedefs.
622         (num_devices, num_images, address_table): New static vars.
623         (num_libraries, lib_descrs): Remove static vars.
624         (set_mic_lib_path): Rename to ...
625         (init): ... this.  Allocate address_table and get num_devices.
626         (GOMP_OFFLOAD_get_num_devices): return num_devices.
627         (load_lib_and_get_table): Remove static function.
628         (offload_image): New static function.
629         (GOMP_OFFLOAD_get_table): Remove function.
630         (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New functions.
632 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
634         * plugin/libgomp-plugin-intelmic.cpp (GOMP_OFFLOAD_get_name)
635         (GOMP_OFFLOAD_get_caps, GOMP_OFFLOAD_fini_device): New functions.
637 2014-11-13  Ilya Verbin  <ilya.verbin@intel.com>
638             Andrey Turetskiy  <andrey.turetskiy@intel.com>
640         * Makefile.in: Regenerate.
641         * configure: Regenerate.
642         * configure.ac: Add subdirectory 'plugin'.
643         * plugin/Makefile.am: New file.
644         * plugin/Makefile.in: New file, generated by automake.
645         * plugin/aclocal.m4: New file, generated by aclocal.
646         * plugin/configure: New file, generated by autoconf.
647         * plugin/configure.ac: New file.
648         * plugin/libgomp-plugin-intelmic.cpp: New file.
649         * plugin/offload_target_main.cpp: New file.
651 2014-11-13  Kirill Yukhin  <kirill.yukhin@intel.com>
653         Initial commit.  Imported from upstream:
654         https://www.openmprtl.org/sites/default/files/liboffload_oss.tgz
655         * Makefile.am: New file.
656         * Makefile.in: New file, generated by automake.
657         * aclocal.m4: New file, generated by aclocal.
658         * configure: New file, generated by autoconf.
659         * configure.ac: New file.
660         * configure.tgt: Ditto.
661         * doc/doxygen/config: Ditto.
662         * doc/doxygen/header.tex: Ditto.
663         * include/coi/common/COIEngine_common.h: Ditto.
664         * include/coi/common/COIMacros_common.h: Ditto.
665         * include/coi/common/COIPerf_common.h : Ditto.
666         * include/coi/common/COIResult_common.h : Ditto.
667         * include/coi/common/COITypes_common.h: Ditto.
668         * include/coi/sink/COIBuffer_sink.h: Ditto.
669         * include/coi/sink/COIPipeline_sink.h: Ditto.
670         * include/coi/sink/COIProcess_sink.h: Ditto.
671         * include/coi/source/COIBuffer_source.h: Ditto.
672         * include/coi/source/COIEngine_source.h: Ditto.
673         * include/coi/source/COIEvent_source.h: Ditto.
674         * include/coi/source/COIPipeline_source.h: Ditto.
675         * include/coi/source/COIProcess_source.h: Ditto.
676         * include/myo/myo.h: Ditto.
677         * include/myo/myoimpl.h: Ditto.
678         * include/myo/myotypes.h: Ditto.
679         * liboffloadmic_host.spec.in: Ditto.
680         * liboffloadmic_target.spec.in: Ditto.
681         * runtime/cean_util.cpp: Ditto.
682         * runtime/cean_util.h: Ditto.
683         * runtime/coi/coi_client.cpp: Ditto.
684         * runtime/coi/coi_client.h: Ditto.
685         * runtime/coi/coi_server.cpp: Ditto.
686         * runtime/coi/coi_server.h: Ditto.
687         * runtime/compiler_if_host.cpp: Ditto.
688         * runtime/compiler_if_host.h: Ditto.
689         * runtime/compiler_if_target.cpp: Ditto.
690         * runtime/compiler_if_target.h: Ditto.
691         * runtime/dv_util.cpp: Ditto.
692         * runtime/dv_util.h: Ditto.
693         * runtime/emulator/coi_common.h: Ditto.
694         * runtime/emulator/coi_device.cpp: Ditto.
695         * runtime/emulator/coi_device.h: Ditto.
696         * runtime/emulator/coi_host.cpp: Ditto.
697         * runtime/emulator/coi_host.h: Ditto.
698         * runtime/emulator/coi_version_asm.h: Ditto.
699         * runtime/emulator/coi_version_linker_script.map: Ditto.
700         * runtime/emulator/myo_client.cpp: Ditto.
701         * runtime/emulator/myo_service.cpp: Ditto.
702         * runtime/emulator/myo_service.h: Ditto.
703         * runtime/emulator/myo_version_asm.h: Ditto.
704         * runtime/emulator/myo_version_linker_script.map: Ditto.
705         * runtime/liboffload_error.c: Ditto.
706         * runtime/liboffload_error_codes.h: Ditto.
707         * runtime/liboffload_msg.c: Ditto.
708         * runtime/liboffload_msg.h: Ditto.
709         * runtime/mic_lib.f90: Ditto.
710         * runtime/offload.h: Ditto.
711         * runtime/offload_common.cpp: Ditto.
712         * runtime/offload_common.h: Ditto.
713         * runtime/offload_engine.cpp: Ditto.
714         * runtime/offload_engine.h: Ditto.
715         * runtime/offload_env.cpp: Ditto.
716         * runtime/offload_env.h: Ditto.
717         * runtime/offload_host.cpp: Ditto.
718         * runtime/offload_host.h: Ditto.
719         * runtime/offload_myo_host.cpp: Ditto.
720         * runtime/offload_myo_host.h: Ditto.
721         * runtime/offload_myo_target.cpp: Ditto.
722         * runtime/offload_myo_target.h: Ditto.
723         * runtime/offload_omp_host.cpp: Ditto.
724         * runtime/offload_omp_target.cpp: Ditto.
725         * runtime/offload_orsl.cpp: Ditto.
726         * runtime/offload_orsl.h: Ditto.
727         * runtime/offload_table.cpp: Ditto.
728         * runtime/offload_table.h: Ditto.
729         * runtime/offload_target.cpp: Ditto.
730         * runtime/offload_target.h: Ditto.
731         * runtime/offload_target_main.cpp: Ditto.
732         * runtime/offload_timer.h: Ditto.
733         * runtime/offload_timer_host.cpp: Ditto.
734         * runtime/offload_timer_target.cpp: Ditto.
735         * runtime/offload_trace.cpp: Ditto.
736         * runtime/offload_trace.h: Ditto.
737         * runtime/offload_util.cpp: Ditto.
738         * runtime/offload_util.h: Ditto.
739         * runtime/ofldbegin.cpp: Ditto.
740         * runtime/ofldend.cpp: Ditto.
741         * runtime/orsl-lite/include/orsl-lite.h: Ditto.
742         * runtime/orsl-lite/lib/orsl-lite.c: Ditto.
743         * runtime/orsl-lite/version.txt: Ditto.
744         * runtime/use_mpss2.txt: Ditto.
746 Copyright (C) 2014-2018 Free Software Foundation, Inc.
748 Copying and distribution of this file, with or without modification,
749 are permitted in any medium without royalty provided the copyright
750 notice and this notice are preserved.