make test fails.
Hello, I have successfully built icd_loader; and also modified /etc/OpenCL/vendors/test.icd to point to the DriverStub.so built from icd_loader. Then I tried to run make 'test. It failed with the following errors: make -C build test make[1]: Entering directory '/home/xxxx/xxx/icd/build' Running tests... Test project /home/xxxx/xxx/icd/build Start 1: OPENCL_ICD_LOADER_TEST 1/1 Test #1: OPENCL_ICD_LOADER_TEST ...........***Exception: SegFault 0.79 sec
0% tests passed, 1 tests failed out of 1
Total Test time (real) = 0.79 sec
The following tests FAILED: 1 - OPENCL_ICD_LOADER_TEST (SEGFAULT) Errors while running CTest
...
What is the wrong here?
thanks,
steven
Please see the README for instructions on how to run the tests. You need to manually add an ICD entry for the driver stub that is built along the tests.
I did add an ICD entry to the driver stub built from this repo. There is a 'icd_loader_test' generated under bin. However, the readme also describes another way to make test. It seems not working. If it creates the same icd_loader_test, I think I can go with that. thanks steven
@pint1022 Were you able to figure out a solution for this issue?
I am not sure what the issue is. The "make test" step works on my Ubuntu 16.04 machine. You can try to run the test manually with ./build/bin/icd_loader_test and see if that works.
@pint1022 @tataganesh95 I've been working on fixes for ICD loader test failure, among other things. One issue I found was that the clCreateImage2D test wasn't logging all of the parameters, leading to a mismatch. I have a fix staged here (need to do a bit more testing before creating a PR), but you may want to see if it works for you:
https://github.com/bashbaug/OpenCL-ICD-Loader/tree/icd_warning_test_fixes,
@kepatil I'm not sure why this test isn't failing for you?
This is an old issue that hasn't been updated in approximately six months. Can we close it? Thanks!