kpet / clvk Goto Github PK
View Code? Open in Web Editor NEWImplementation of OpenCL 3.0 on Vulkan
License: Apache License 2.0
Implementation of OpenCL 3.0 on Vulkan
License: Apache License 2.0
So others can easily run conformance tests.
I've got a local prototype with a few tests but I'll happily throw it away and port the tests I have if someone is willing to take that on.
Currently the information is printed directly by clspv.
Need to enable the arg metadata feature in clang/clspv and figure out an interface with clvk.
This should work when creating programs from binaries as well.
clCreateImage2D
and clCreateImage3D
. Probably best done by extracting a common cvk_create_image
with the semantics of the new-style clCreateImage
and using it in all three entrypoints.
Testing CL_KERNEL_WORK_GROUP_SIZE query.
Can be done in clvk by inspecting the SPIR-V module using SPIR-V tools (prototyped this) but probably better done in clspv with a suitable interface to clvk.
SPIR-V via the SPIRV-LLVM translator.
The problem appears to be a bug in clvk.
Should make test_basic/bufferreadwriterect
pass in the conformance tests.
When running the Solus repository version of opencl it returns the following error:
clinfo: ./build/libOpenCL.so.1: no version information available (required by clinfo) clinfo: relocation error: clinfo: symbol clGetExtensionFunctionAddress version OPENCL_1.0 not defined in file libOpenCL.so.1 with link time reference
Also tried running the PlaidML library at git commit plaidml/plaidml@8696156 but was as expected informed that no OpenCL devices were found. Sadly I'm not terribly experienced with OpenCL in general so I don't have much other information. If there is anything else I can try I would like to help in any way I can!
Setup:
OS: Solus
Kernel: 4.18.9
Vulkan: 1.1.82.0
LLVM: 6.0.1
clinfo: 2.2.18.04.06
clvk currently relies on the descriptor map obtained from clspv to ascertain the existence of a kernel in a given program. Kernels with no arguments aren't described at all in the descriptor map and thus can't be used (kernel creation will fail). Not the most pressing thing to fix though :).
Depends on google/clspv#276
I'm trying to build the project on macOS.
After getting the source, I make a build
subdirectory and run
cmake -G Ninja -DCMAKE_BUILD_TYPE=Release ..
It fails to configure, with the following error:
-- Could NOT find Vulkan (missing: Vulkan_LIBRARY Vulkan_INCLUDE_DIR)
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
/Users/dneto/project/clvk/clvk/src/Vulkan_INCLUDE_DIR
used as include directory in directory /Users/dneto/project/clvk/clvk/src
Vulkan_LIBRARY (ADVANCED)
linked by target "OpenCL" in directory /Users/dneto/project/clvk/clvk/src
-- Configuring incomplete, errors occurred!
What is the dependence on Vulkan?
Is it for the headers? What's the normal way of getting them? Is the normal flow to set up a Vulkan environment so it can be executed?
Requires pointer-to-integer casts in clspv.
Not all entrypoints have got logging implemented. Needs a full review of all entrypoints in src/api.cpp
.
So we don't spend time arguing about braces and spaces in code reviews.
Support for CL_MEM_USE_HOST_PTR
in buffer mapping/unmapping is broken. The conformance test is hiding some of the issues since it updates the memory passed as host_ptr
instead of computing a reference result in a separate allocation.
Support buffer_ubo
argument kinds.
Needs at least google/clspv#341
See #25
clspv doesn't accept -Ipath without a space. Liaise with them to change this or deal with it in the runtime.
8-element and 16-element vectors
Depends on google/clspv#321
Currently VK_DEVICE_LOST
with no obvious cause (passes the validation layers).
single 5 all
multiple 5 all
cl_khr_int64_base_atomics and cl_khr_int64_extended_atomics.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.