enable interoperability with ocl-icd

according to spec we have to export clGetPlatformInfo API entry point
for Installable Client Driver (ICD) to work.

on Linux it requires extra flag for linker to avoid loop in dispatch
table.

Change-Id: I2f6cf7da10e3a346c363d7bc94d9eff1eeb64895
This commit is contained in:
Artur Harasimiuk 2018-02-26 10:21:32 +01:00
parent be0150a563
commit c50054f787
2 changed files with 4 additions and 0 deletions

View File

@ -404,6 +404,9 @@ if(${GENERATE_EXECUTABLE})
set_property(TARGET ${NEO_DYNAMIC_LIB_NAME}
APPEND_STRING PROPERTY LINK_FLAGS " -Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/dll/linux/ocl.exports"
)
set_property(TARGET ${NEO_DYNAMIC_LIB_NAME}
APPEND_STRING PROPERTY LINK_FLAGS " -Wl,-Bsymbolic"
)
endif (UNIX)
set_target_properties(${NEO_DYNAMIC_LIB_NAME} PROPERTIES

View File

@ -24,6 +24,7 @@
global:
clGetExtensionFunctionAddress;
clIcdGetPlatformIDsKHR;
clGetPlatformInfo;
GTPin_Init;
local: *;
};