File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -293,9 +293,21 @@ if(THEROCK_ENABLE_OCL_RUNTIME)
293293 )
294294
295295 therock_test_validate_shared_lib(
296- PATH ocl-clr/dist/lib
296+ PATH ocl-clr/dist/lib/opencl
297297 LIB_NAMES
298298 libamdocl64.so
299299 )
300300
301+ # Ensure runtime dependencies of libamdocl64.so (for example,
302+ # libamd_comgr_loader.so) are discoverable by the dynamic loader when
303+ # running the validation test. Some configurations (e.g. Windows) do not
304+ # register this test, so guard the property update accordingly.
305+ if (TEST therock-validate-shared-lib-libamdocl64.so)
306+ set_tests_properties (therock-validate-shared-lib-libamdocl64.so
307+ PROPERTIES
308+ ENVIRONMENT
309+ "LD_LIBRARY_PATH=${CMAKE_BINARY_DIR} /core/ocl-clr/dist/lib:$ENV{LD_LIBRARY_PATH} "
310+ )
311+ endif ()
312+
301313endif (THEROCK_ENABLE_OCL_RUNTIME)
You can’t perform that action at this time.
0 commit comments