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:
parent
be0150a563
commit
c50054f787
|
@ -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
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
global:
|
||||
clGetExtensionFunctionAddress;
|
||||
clIcdGetPlatformIDsKHR;
|
||||
clGetPlatformInfo;
|
||||
GTPin_Init;
|
||||
local: *;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue