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

Ctest error in android termux #151

Open
Saikatsaha1996 opened this issue Jul 13, 2021 · 4 comments
Open

Ctest error in android termux #151

Saikatsaha1996 opened this issue Jul 13, 2021 · 4 comments

Comments

@Saikatsaha1996
Copy link

Any solution for this ?

Screenshot_20210713-154816

@bashbaug
Copy link
Contributor

I wrote up some notes how to run the ICD loader tests on Linux a while back. Here's what I do:

To run the tests, execute the tester using the ICD loader environment variable to select the stub tester ICD:

$ OCL_ICD_FILENAMES=./test/driver_stub/libOpenCLDriverStub.so ./test/loader_test/icd_loader_test

I have NOT been able to inherit environment variables via ctest or make test, so these methods of running the tests will NOT work. They can be supported by "installing" the stub ICD loader in /etc/OpenCL/vendors/ but I have found this to be more trouble than it's worth. If anyone knows how to inherit environment variables via ctest please let me know!

I know Linux isn't quite the same as Android but perhaps this is useful?

I agree this is not ideal, see related issue here: #76

@Saikatsaha1996
Copy link
Author

I wrote up some notes how to run the ICD loader tests on Linux a while back. Here's what I do:

To run the tests, execute the tester using the ICD loader environment variable to select the stub tester ICD:

$ OCL_ICD_FILENAMES=./test/driver_stub/libOpenCLDriverStub.so ./test/loader_test/icd_loader_test

I have NOT been able to inherit environment variables via ctest or make test, so these methods of running the tests will NOT work. They can be supported by "installing" the stub ICD loader in /etc/OpenCL/vendors/ but I have found this to be more trouble than it's worth. If anyone knows how to inherit environment variables via ctest please let me know!

I know Linux isn't quite the same as Android but perhaps this is useful?

I agree this is not ideal, see related issue here: #76

Oky I will try thank you for your response...

@MathiasMagnus
Copy link
Contributor

I may have misunderstood the question when skimming through, but I believe this problem is solved in my open PR which is a CI and CMake overhaul, but as a side-effect I also fixed running CTest loading the stub libraries. Here is how I done it.

I'll have dedicated time to attend to that PR in the weeks to come, so it shouldn't be too long until it lands. In the meantime, it may solve your CTest issue.

@Saikatsaha1996
Copy link
Author

16271318971817216788472226960747

Now getting segmentation fault
Android termux

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

3 participants