ChangeLog 28 KB

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