clMathLibraries / clBLAS

a software library containing BLAS functions written in OpenCL
Apache License 2.0
842 stars 240 forks source link

Segmentation fault on OSX 10.9 #215

Open dpo opened 8 years ago

dpo commented 8 years ago

I'm building clBLAS 2.10 with clang++ on OSX 10.9 to try and update the Homebrew formula with the command

cmake src -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/clblas/2.10 -DCMAKE_BUILD_TYPE=Release -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_VERBOSE_MAKEFILE=ON -Wno-dev -DBUILD_TEST=OFF -DBUILD_CLIENT=ON -DBUILD_KTEST=OFF -DSUFFIX_LIB:STRING= -DCMAKE_MACOSX_RPATH:BOOL=ON

The build completes successfully, but running the client gives

$ clBLAS-client --cpu
OpenCL error -36 on line 392 of /tmp/clblas20160109-79982-1xysjg1/clBLAS-2.10/src/library/blas/xgemm.cc
OpenCL error -33 on line 395 of /tmp/clblas20160109-79982-1xysjg1/clBLAS-2.10/src/library/blas/xgemm.cc
OpenCL error -36 on line 142 of /tmp/clblas20160109-79982-1xysjg1/clBLAS-2.10/src/library/blas/xgemm.cc
OpenCL error -36 on line 144 of /tmp/clblas20160109-79982-1xysjg1/clBLAS-2.10/src/library/blas/xgemm.cc
Segmentation fault: 11

Here are the complete logs.

TimmyLiu commented 8 years ago

Hi, I could not reproduce the issue. Do you have a gpu device? what kind of cpu device do you have? OpenCL error -36 means CL_INVALID_COMMAND_QUEUE while -33 means CL_INVALID_DEVICE. I wonder if your cpu device supports OpenCL.

pavanky commented 8 years ago

@dpo OpenCL on CPU for OSX is very hard to support because of the limitations in their implementation. There have been many issues talking about this over here.