Changeset View
Changeset View
Standalone View
Standalone View
openmp/libomptarget/src/rtl.cpp
Show First 20 Lines • Show All 120 Lines • ▼ Show 20 Lines | if (!(*((void**) &R.data_delete) = dlsym( | ||||
dynlib_handle, "__tgt_rtl_data_delete"))) | dynlib_handle, "__tgt_rtl_data_delete"))) | ||||
continue; | continue; | ||||
if (!(*((void**) &R.run_region) = dlsym( | if (!(*((void**) &R.run_region) = dlsym( | ||||
dynlib_handle, "__tgt_rtl_run_target_region"))) | dynlib_handle, "__tgt_rtl_run_target_region"))) | ||||
continue; | continue; | ||||
if (!(*((void**) &R.run_team_region) = dlsym( | if (!(*((void**) &R.run_team_region) = dlsym( | ||||
dynlib_handle, "__tgt_rtl_run_target_team_region"))) | dynlib_handle, "__tgt_rtl_run_target_team_region"))) | ||||
continue; | continue; | ||||
if (!(*((void**) &R.synchronize) = dlsym( | |||||
dynlib_handle, "__tgt_rtl_synchronize"))) | |||||
continue; | |||||
// Optional functions | // Optional functions | ||||
*((void**) &R.init_requires) = dlsym( | *((void**) &R.init_requires) = dlsym( | ||||
dynlib_handle, "__tgt_rtl_init_requires"); | dynlib_handle, "__tgt_rtl_init_requires"); | ||||
// No devices are supported by this RTL? | // No devices are supported by this RTL? | ||||
if (!(R.NumberOfDevices = R.number_of_devices())) { | if (!(R.NumberOfDevices = R.number_of_devices())) { | ||||
DP("No devices supported in this RTL\n"); | DP("No devices supported in this RTL\n"); | ||||
▲ Show 20 Lines • Show All 289 Lines • Show Last 20 Lines |