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

Support for clBLAS Library? #177

Open
msaideroglu opened this issue Sep 11, 2024 · 0 comments
Open

Support for clBLAS Library? #177

msaideroglu opened this issue Sep 11, 2024 · 0 comments

Comments

@msaideroglu
Copy link

msaideroglu commented Sep 11, 2024

Does Vortex support and compile clBLAS lib? When I try to compile and run-simx of sample sgemm code provided by clBLAS, it gives:

Starting program: ~/Vortex_OpenCL/sgemm/sgemm 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/x86_64-linux-gnu/libthread_db.so.1".
sgemm_Col_NN_B1_3x2x4
makeGemmKernel: Creating program from source
clBuildProgram Failed
err = -11

Build Log:

Error(s) while linking: 
Cannot find symbol _Z13_cl_mem_fencej in kernel library
Device Vortex OpenGPU failed to build the program

OpenCL error -11 on line 256 of ~/Desktop/CLBLAS/Vortex/clBLAS-2.12-sowson/src/library/blas/xgemm.cc
sgemm: ~/Desktop/CLBLAS/Vortex/clBLAS-2.12-sowson/src/library/blas/xgemm.cc:256: void makeGemmKernel(_cl_kernel**, cl_command_queue, const char*, const char*, const unsigned char**, size_t*, const char*): Assertion `false' failed.

To reproduce:
in CMakeLists.txt of clBLAS:

set(OPENCL_INCLUDE_DIRS ~/Desktop/GPGPU/Vortex_GPGPU/tools_vortex_v2.2/pocl/include)
set(OPENCL_LIBRARIES ~/Desktop/GPGPU/Vortex_GPGPU/tools_vortex_v2.2/pocl/lib/libOpenCL.so)

So actual error is Cannot find symbol _Z13_cl_mem_fencej in kernel library. Vortex's OpenCL implements barrier(CLK_LOCAL_MEM_FENCE) but not mem_fence(CLK_LOCAL_MEM_FENCE). mem_fence(CLK_LOCAL_MEM_FENCE) gives Cannot find symbol _Z13_cl_mem_fencej in kernel library. The error is coming from mem_fence(CLK_LOCAL_MEM_FENCE) in CLBLAS kernels. @JacobLevinson @troibe

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

1 participant