OpenCL-ICD-Loader icon indicating copy to clipboard operation
OpenCL-ICD-Loader copied to clipboard

make test fails.

Open pint1022 opened this issue 7 years ago • 6 comments

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

pint1022 avatar Jun 11 '18 17:06 pint1022

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.

kepatil avatar Jun 11 '18 19:06 kepatil

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 avatar Jun 11 '18 20:06 pint1022

@pint1022 Were you able to figure out a solution for this issue?

tataganesh95 avatar Oct 03 '18 09:10 tataganesh95

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.

kepatil avatar Jan 26 '19 00:01 kepatil

@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,

link to test fix

@kepatil I'm not sure why this test isn't failing for you?

bashbaug avatar Jan 31 '19 08:01 bashbaug

This is an old issue that hasn't been updated in approximately six months. Can we close it? Thanks!

bashbaug avatar Jul 09 '19 22:07 bashbaug