-
Notifications
You must be signed in to change notification settings - Fork 230
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
Fail in test-cl-image #449
Comments
I see /usr/local/cuda-8.0/lib64/libOpenCL.so.1. currently libxcam doens't support nvidia, though we'are trying to make libxcam common without HW dependencies. |
Thank you, Yuan!
Moreover, libOpenCL.so locates both at How can I get rid of dependency on CUDA? |
I think cuda also has a ICD file in /etc/OpenCL/vendors. you can |
Successfully made libxcam after removing CUDA path from LD_LIBRARY_PATH |
you may need to change to 'root' to test or stop service gdm/lightdm. libxcam use libdrm for buffer-management and it's possible the request of buffer-manager failed in authentication with XServer. |
Shut down lightdm in command line mode by DRM_IOCTL_I915_GEM_APERTURE failed: Invalid argument |
It's more like Beignet doens't support your HW. you can get Beignet code, and there's a script 'GetGenID.sh' which you can run to see your platform.
|
BTW, ./test-cl-image -t retinex -f RGBA -i ./input.png -o ./output.png. |
What a platform is required? |
what's your platform? from Beignet GetGenID.sh. we can see it supports IVB, BYT, HSW, BRW, BSW, SKL, BXT(APL) |
My two PCs with pciid of 191f and 0e00 both seem not to be supported in the list of GetGenID.sh. |
I'm not sure your platform from codeid. If you are sure you have another PC with any of IVB, BYT, HSW, BRW, BSW, SKL, BXT(APL). please try again. |
Tried more than 5 PCs, but they are all not supported. And sent my problem to beignet@lists.freedesktop.org |
@lenovoivc sorry for inconvenience, we are planning to add more drivers support in next release. |
Thank you. Hope to test libxcam in my PCs soon. |
here is what lspci -nn showed on my PC with Intel integrated graphics controller. Beignet is an OCL driver based on Intel integrated graphics card (chip). |
Try to compile beignet and libxcam on Ubuntu 16.04 / CUDA 8.0.
Finally, when trying:
./test-cl-image -t retinex -f RGBA -i ./input.png -o ./output.png
the errors below occur:
/libxcam/tests/.libs/lt-test-cl-image: /usr/local/cuda-8.0/lib64/libOpenCL.so.1: no version information available (required by /libxcam/modules/ocl/.libs/libxcam_ocl.so.1)
X server found. dri2 connection failed!
DRM_IOCTL_I915_GEM_APERTURE failed: Invalid argument
Assuming 131072kB available aperture size.
May lead to reduced performance or incorrect rendering.
get chip id failed: -1 [22]
param: 4, val: 0
cl_get_gt_device(): error, unknown device: 0
XCAM WARNING cl_device.cpp:113: get cl device ID failed
XCAM WARNING cl_device.cpp:52: CL device init failed
XCAM DEBUG cl_device.cpp:54: CL device constructed
lt-test-cl-image: cl_kernel.cpp:39: XCam::CLKernel::CLKernel(const XCam::SmartPtrXCam::CLContext&, const char*): Assertion `context.ptr ()' failed.
Aborted (core dumped)
Actually, the errors below have occurred during Make:
make all-recursive
make[1]: Entering directory '/libxcam'
Making all in xcore
make[2]: Entering directory '/libxcam/xcore'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/libxcam/xcore'
Making all in clx_kernel
make[2]: Entering directory '/libxcam/clx_kernel'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/libxcam/clx_kernel'
Making all in modules
make[2]: Entering directory '/libxcam/modules'
Making all in ocl
make[3]: Entering directory '/libxcam/modules/ocl'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/libxcam/modules/ocl'
make[3]: Entering directory '/libxcam/modules'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/libxcam/modules'
make[2]: Leaving directory '/libxcam/modules'
Making all in plugins
make[2]: Entering directory '/libxcam/plugins'
make[3]: Entering directory '/libxcam/plugins'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/libxcam/plugins'
make[2]: Leaving directory '/libxcam/plugins'
Making all in wrapper
make[2]: Entering directory '/libxcam/wrapper'
make[3]: Entering directory '/libxcam/wrapper'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/libxcam/wrapper'
make[2]: Leaving directory '/libxcam/wrapper'
Making all in capi
make[2]: Entering directory '/libxcam/capi'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/libxcam/capi'
Making all in tests
make[2]: Entering directory '/libxcam/tests'
/bin/bash ../libtool --tag=CXX --mode=link g++ -fPIC -DSTDC99 -W -Wall -D_REENTRANT -Wformat -Wformat-security -fstack-protector -g -DDEBUG -std=c++0x -I/usr/include/libdrm -ldrm -I../ext/atomisp -I../xcore -I../modules -g -O2 -o test-device-manager test_device_manager-test-device-manager.o ../xcore/libxcam_core.la ../modules/ocl/libxcam_ocl.la
libtool: link: g++ -fPIC -DSTDC99 -W -Wall -D_REENTRANT -Wformat -Wformat-security -fstack-protector -g -DDEBUG -std=c++0x -I/usr/include/libdrm -I../ext/atomisp -I../xcore -I../modules -g -O2 -o .libs/test-device-manager test_device_manager-test-device-manager.o -ldrm ../xcore/.libs/libxcam_core.so ../modules/ocl/.libs/libxcam_ocl.so -pthread -Wl,-rpath -Wl,/usr/local/lib/beignet/lib
../modules/ocl/.libs/libxcam_ocl.so: undefined reference to
clCreateCommandQueueWithProperties@OPENCL_2.0' ../modules/ocl/.libs/libxcam_ocl.so: undefined reference to
clGetDeviceIDs@OPENCL_1.0'../modules/ocl/.libs/libxcam_ocl.so: undefined reference to
clReleaseCommandQueue@OPENCL_1.0' ../modules/ocl/.libs/libxcam_ocl.so: undefined reference to
clBuildProgram@OPENCL_1.0'../modules/ocl/.libs/libxcam_ocl.so: undefined reference to
clGetExtensionFunctionAddressForPlatform@OPENCL_1.2' ../modules/ocl/.libs/libxcam_ocl.so: undefined reference to
clCreateKernel@OPENCL_1.0'../modules/ocl/.libs/libxcam_ocl.so: undefined reference to
clGetPlatformIDs@OPENCL_1.0' ../modules/ocl/.libs/libxcam_ocl.so: undefined reference to
clSetKernelArg@OPENCL_1.0'../modules/ocl/.libs/libxcam_ocl.so: undefined reference to
clCreateProgramWithBinary@OPENCL_1.0' ../modules/ocl/.libs/libxcam_ocl.so: undefined reference to
clGetPlatformInfo@OPENCL_1.0'../modules/ocl/.libs/libxcam_ocl.so: undefined reference to
clGetProgramInfo@OPENCL_1.0' ../modules/ocl/.libs/libxcam_ocl.so: undefined reference to
clCreateBuffer@OPENCL_1.0'../modules/ocl/.libs/libxcam_ocl.so: undefined reference to
clReleaseProgram@OPENCL_1.0' ../modules/ocl/.libs/libxcam_ocl.so: undefined reference to
clSetEventCallback@OPENCL_1.1'../modules/ocl/.libs/libxcam_ocl.so: undefined reference to
clReleaseEvent@OPENCL_1.0' ../modules/ocl/.libs/libxcam_ocl.so: undefined reference to
clEnqueueReadBuffer@OPENCL_1.0'../modules/ocl/.libs/libxcam_ocl.so: undefined reference to
clCreateContext@OPENCL_1.0' ../modules/ocl/.libs/libxcam_ocl.so: undefined reference to
clCreateImage@OPENCL_1.2'../modules/ocl/.libs/libxcam_ocl.so: undefined reference to
clWaitForEvents@OPENCL_1.0' ../modules/ocl/.libs/libxcam_ocl.so: undefined reference to
clEnqueueMapImage@OPENCL_1.0'../modules/ocl/.libs/libxcam_ocl.so: undefined reference to
clEnqueueWriteBuffer@OPENCL_1.0' ../modules/ocl/.libs/libxcam_ocl.so: undefined reference to
clFinish@OPENCL_1.0'../modules/ocl/.libs/libxcam_ocl.so: undefined reference to
clGetProgramBuildInfo@OPENCL_1.0' ../modules/ocl/.libs/libxcam_ocl.so: undefined reference to
clGetEventInfo@OPENCL_1.0'../modules/ocl/.libs/libxcam_ocl.so: undefined reference to
clReleaseContext@OPENCL_1.0' ../modules/ocl/.libs/libxcam_ocl.so: undefined reference to
clEnqueueUnmapMemObject@OPENCL_1.0'../modules/ocl/.libs/libxcam_ocl.so: undefined reference to
clGetDeviceInfo@OPENCL_1.0' ../modules/ocl/.libs/libxcam_ocl.so: undefined reference to
clEnqueueNDRangeKernel@OPENCL_1.0'../modules/ocl/.libs/libxcam_ocl.so: undefined reference to
clCreateProgramWithSource@OPENCL_1.0' ../modules/ocl/.libs/libxcam_ocl.so: undefined reference to
clGetImageInfo@OPENCL_1.0'../modules/ocl/.libs/libxcam_ocl.so: undefined reference to
clReleaseKernel@OPENCL_1.0' ../modules/ocl/.libs/libxcam_ocl.so: undefined reference to
clReleaseMemObject@OPENCL_1.0'../modules/ocl/.libs/libxcam_ocl.so: undefined reference to
clFlush@OPENCL_1.0' ../modules/ocl/.libs/libxcam_ocl.so: undefined reference to
clGetMemObjectInfo@OPENCL_1.0'../modules/ocl/.libs/libxcam_ocl.so: undefined reference to `clEnqueueMapBuffer@OPENCL_1.0'
collect2: error: ld returned 1 exit status
Makefile:541: recipe for target 'test-device-manager' failed
make[2]: *** [test-device-manager] Error 1
make[2]: Leaving directory '/libxcam/tests'
Makefile:436: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/libxcam'
Makefile:368: recipe for target 'all' failed
make: *** [all] Error 2
The text was updated successfully, but these errors were encountered: