One example of a Vulkan application that runs OpenCL C kernels, compiled to SPIR-V wwth clspv, in a Vulkan compute pipeline.
To build ClspvTest, you will need:
CMakeLists.txt expects to find:
- clspv at
/usr/local/bin/clspv
- glslangValidator at
/usr/local/bin/glslangValidator
- spirv-opt at
/usr/local/bin/spirv-opt
(I recommend using the version of spirv-opt built along with your clspv distribution)
- Run Android Studio
- Select
Open an existing Android Studio project
- Navigate to the location at which you cloned this repo
- Build and/or run the project.
ClspvTest runs on Android. You will need an Android device on which to run the application because the emulators available in Android Studio do not support Vulkan.
ClspvTest provides no UI on the Android device. All output is represented in messages written to the Android log (e.g. visible via logcat).