{"push_id":1408889718,"size":1,"distinct_size":0,"ref":"refs/heads/gomp-4_0-branch","head":"9f9df7e6800e23b6cdc4b93b06562e0946219a4c","before":"69ce30268e2fb838f4161b9d14acd0a80db0c1f9","commits":[{"sha":"9f9df7e6800e23b6cdc4b93b06562e0946219a4c","author":{"name":"cesar","email":"35609d7cf78d2b57c8c0f4b4565432533726de27@138bc75d-0d04-0410-961f-82ee72b054a4"},"message":"\tBackport from trunk:\n\t2016-05-26  Chung-Lin Tang  <cltang@codesourcery.com>\n\n\tlibgomp/\n\t* target.c (gomp_device_copy): New function.\n\t(gomp_copy_host2dev): Likewise.\n\t(gomp_copy_dev2host): Likewise.\n\t(gomp_free_device_memory): Likewise.\n\t(gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.\n\t(gomp_map_pointer): Likewise.\n\t(gomp_map_vars): Adjust to call gomp_copy_host2dev, handle\n\tNULL value from alloc_func plugin hook.\n\t(gomp_unmap_tgt): Adjust to call gomp_free_device_memory.\n\t(gomp_copy_from_async): Adjust to call gomp_copy_dev2host.\n\t(gomp_unmap_vars): Likewise.\n\t(gomp_update): Adjust to call gomp_copy_dev2host and\n\tgomp_copy_host2dev functions.\n\t(gomp_unload_image_from_device): Handle false value from\n\tunload_image_func plugin hook.\n\t(gomp_init_device): Handle false value from init_device_func\n\tplugin hook.\n\t(gomp_exit_data): Adjust to call gomp_copy_dev2host.\n\t(omp_target_free): Adjust to call gomp_free_device_memory.\n\t(omp_target_memcpy): Handle return values from host2dev_func,\n\tdev2host_func, and dev2dev_func plugin hooks.\n\t(omp_target_memcpy_rect_worker): Likewise.\n\t(gomp_target_fini): Handle false value from fini_device_func\n\tplugin hook.\n\t* libgomp.h (struct gomp_device_descr): Adjust return type of\n\tinit_device_func, fini_device_func, unload_image_func, free_func,\n\tdev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.\n\t* oacc-init.c (acc_shutdown_1): Handle false value from\n\tfini_device_func plugin hook.\n\t* oacc-host.c (host_init_device): Change return type to bool.\n\t(host_fini_device): Likewise.\n\t(host_unload_image): Likewise.\n\t(host_free): Likewise.\n\t(host_dev2host): Likewise.\n\t(host_host2dev): Likewise.\n\t* oacc-mem.c (acc_free): Handle plugin hook fatal error case.\n\t(acc_memcpy_to_device): Likewise.\n\t(acc_memcpy_from_device): Likewise.\n\t(delete_copyout): Add libfnname parameter, handle free_func\n\thook fatal error case.\n\t(acc_delete): Adjust delete_copyout call.\n\t(acc_copyout): Likewise.\n\t(update_dev_host): Move gomp_mutex_unlock to after\n\thost2dev/dev2host hook calls.\n\t* plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable\n\tto 'hsa_error_msg', for clarity.\n\t(hsa_fatal): Likewise.\n\t(hsa_error): New function.\n\t(init_hsa_context): Change return type to bool, adjust to return\n\tfalse on error.\n\t(GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context\n\treturn value.\n\t(GOMP_OFFLOAD_init_device): Change return type to bool, adjust to\n\treturn false on error.\n\t(get_agent_info): Adjust to return NULL on error.\n\t(destroy_hsa_program): Change return type to bool, adjust to\n\treturn false on error.\n\t(GOMP_OFFLOAD_load_image): Adjust to return -1 on error.\n\t(destroy_module): Change return type to bool, adjust to\n\treturn false on error.\n\t(GOMP_OFFLOAD_unload_image): Likewise.\n\t(GOMP_OFFLOAD_fini_device): Likewise.\n\t(GOMP_OFFLOAD_alloc): Change to return NULL when called.\n\t(GOMP_OFFLOAD_free): Change to return false when called.\n\t(GOMP_OFFLOAD_dev2host): Likewise.\n\t(GOMP_OFFLOAD_host2dev): Likewise.\n\t(GOMP_OFFLOAD_dev2dev): Likewise.\n\t* plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.\n\t(CUDA_CALL): Likewise.\n\t(CUDA_CALL_ASSERT): Likewise.\n\t(map_init): Change return type to bool, use CUDA_CALL* macros.\n\t(map_fini): Likewise.\n\t(init_streams_for_device): Change return type to bool, adjust\n\tcall to map_init.\n\t(fini_streams_for_device): Change return type to bool, adjust\n\tcall to map_fini.\n\t(select_stream_for_async): Release stream_lock before calls to\n\tGOMP_PLUGIN_fatal, adjust call to map_init.\n\t(nvptx_init): Use CUDA_CALL* macros.\n\t(nvptx_attach_host_thread_to_device): Change return type to bool,\n\tuse CUDA_CALL* macros.\n\t(nvptx_open_device): Use CUDA_CALL* macros.\n\t(nvptx_close_device): Change return type to bool, use CUDA_CALL*\n\tmacros.\n\t(nvptx_get_num_devices): Use CUDA_CALL* macros.\n\t(link_ptx): Change return type to bool, use CUDA_CALL* macros.\n\t(nvptx_exec): Use CUDA_CALL* macros.\n\t(nvptx_alloc): Use CUDA_CALL* macros.\n\t(nvptx_free): Change return type to bool, use CUDA_CALL* macros.\n\t(nvptx_host2dev): Likewise.\n\t(nvptx_dev2host): Likewise.\n\t(nvptx_wait): Use CUDA_CALL* macros.\n\t(nvptx_wait_async): Likewise.\n\t(nvptx_wait_all): Likewise.\n\t(nvptx_wait_all_async): Likewise.\n\t(nvptx_set_cuda_stream): Adjust order of stream_lock acquire,\n\tuse CUDA_CALL* macros, adjust call to map_fini.\n\t(GOMP_OFFLOAD_init_device): Change return type to bool,\n\tadjust code accordingly.\n\t(GOMP_OFFLOAD_fini_device): Likewise.\n\t(GOMP_OFFLOAD_load_image): Adjust calls to\n\tnvptx_attach_host_thread_to_device/link_ptx to handle errors,\n\tuse CUDA_CALL* macros.\n\t(GOMP_OFFLOAD_unload_image): Change return type to bool, adjust\n\treturn code.\n\t(GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.\n\t(GOMP_OFFLOAD_free): Change return type to bool, adjust calls to\n\thandle error return.\n\t(GOMP_OFFLOAD_dev2host): Likewise.\n\t(GOMP_OFFLOAD_host2dev): Likewise.\n\t(GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.\n\t(GOMP_OFFLOAD_openacc_create_thread_data): Likewise.\n\n\tliboffloadmic/\n\t* plugin/libgomp-plugin-intelmic.cpp (offload): Change return type\n\tto bool, adjust return code.\n\t(GOMP_OFFLOAD_init_device): Likewise.\n\t(GOMP_OFFLOAD_fini_device): Likewise.\n\t(get_target_table): Likewise.\n\t(offload_image): Likwise.\n\t(GOMP_OFFLOAD_load_image): Adjust call to offload_image(), change\n\tto return -1 on error.\n\t(GOMP_OFFLOAD_unload_image): Change return type to bool, adjust return\n\tcode.\n\t(GOMP_OFFLOAD_alloc): Likewise.\n\t(GOMP_OFFLOAD_free): Likewise.\n\t(GOMP_OFFLOAD_host2dev): Likewise.\n\t(GOMP_OFFLOAD_dev2host): Likewise.\n\t(GOMP_OFFLOAD_dev2dev): Likewise.\n\n\n\ngit-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gomp-4_0-branch@242496 138bc75d-0d04-0410-961f-82ee72b054a4","distinct":false,"url":"https://api.github.com/repos/cesarjp/gcc/commits/9f9df7e6800e23b6cdc4b93b06562e0946219a4c"}]}
{"actor":{"display_login":"cesarjp"}}