Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using OpenCL-static with CLBlast #657

Open
bmanga opened this issue Jan 26, 2024 · 3 comments
Open

Using OpenCL-static with CLBlast #657

bmanga opened this issue Jan 26, 2024 · 3 comments

Comments

@bmanga
Copy link

bmanga commented Jan 26, 2024

Hi,
I know this is not the officially supported way to run clvk, but I was trying to statically link the library (OpenCL-static) to my executable.
Using the pre-compiled spirv from clspv works, but using CLBlast which compiles the kernels at runtime I get the following:

OpenCL compiler error/warning:
clspv: for the --arch option: Cannot find option named ''!

CLBlast: OpenCL error: clBuildProgram: -11

I was wondering if someone had any ideas on where the problem might be.
Thanks!

@rjodinchr
Copy link
Contributor

Can you try to run it with the following env variable set:
CLVK_SPIRV_ARCH=spir

@bmanga
Copy link
Author

bmanga commented Jan 26, 2024

Hi @rjodinchr thanks for the reply!

Unfortunately the env variable doesn't help....

@rjodinchr
Copy link
Contributor

I guess you will have to use lldb or gdb to get more information then.

Having a look at m_spirv_arch in

m_device_compiler_options += " -arch=" + m_spirv_arch + " ";

or
SET_DEVICE_PROPERTY_S(spirv_arch);
(before and after)
might help us understand what is happening.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants