mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-10 12:53:42 +08:00
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:
@ -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: *;
|
||||
};
|
||||
|
Reference in New Issue
Block a user