Skip to content

Jules-Kong/OpenCL-CTS-guide

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 

Repository files navigation

OpenCL-CTS-guide

Getting the Source Code and Building

 git clone https://github.com/KhronosGroup/OpenCL-CTS.git (Use historical version c511ac6)

 mkdir OpenCL-CTS/build
 cmake -S OpenCL-CTS -B OpenCL-CTS/build \
       -DCL_INCLUDE_DIR=${VENTUS_INSTALL_PREFIX}/include \
       -DCL_LIB_DIR=${VENTUS_INSTALL_PREFIX}/lib \
       -DOPENCL_LIBRARIES=OpenCL

 cmake --build OpenCL-CTS/build --config Release

Running the CTS

  • Import environment variables, like
export CL_ICD_FILENAMES=${VENTUS_INSTALL_PREFIX}/lib/libpocl.so
  • Execute the test binary. For example,
cd build/test_conformance/compiler
./test_compiler       ---  run all tests under the compiler
./test_compiler load_program_source    ---  Run the use case named load_program_source under the compiler

note: run "./test_compiler --help" to get the names of cases.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors