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

OpenCL generates clCreateBuffer error after built with debug symbols #198

Open
nipunayf opened this issue May 31, 2023 · 5 comments
Open
Labels
bug Something isn't working

Comments

@nipunayf
Copy link
Contributor

The error /libnomp/src/opencl.c:41 clCreateBuffer failed with error code: -2125574144 is repeatedly occurring as the cause for most of the test cases when the project is built with debug symbols. This issue is specific to the OpenCL implementation, while the CUDA backend appears to be functioning correctly.

To reproduce the steps:

  1. Build the libnomp project with debug symbols: ./lncfg -b debug && ./lninstall --no.
  2. Run the tests with the OpenCL backend: lnrun t -b opencl -v 2.
@nipunayf nipunayf added the bug Something isn't working label May 31, 2023
@thilinarmtb
Copy link
Contributor

Do the OpenCL examples in nomp-org/examples built on debug mode throws the same error?

@nipunayf
Copy link
Contributor Author

nipunayf commented Jun 1, 2023

Do the OpenCL examples in nomp-org/examples built on debug mode throws the same error?

Yes, the vector addition example fails with the following error:

[Error] projects/nomp/libnomp/src/nomp.c:422 Kernel id -1 passed to nomp_run is not valid.
[Error] projects/nomp/libnomp/src/opencl.c:72 clCreateProgramWithSource failed with error code: 32569.

However, the same program works with the Cuda backend.

@thilinarmtb
Copy link
Contributor

Do the OpenCL examples in nomp-org/examples built on debug mode throws the same error?

Yes, the vector addition example fails with the following error:

[Error] projects/nomp/libnomp/src/nomp.c:422 Kernel id -1 passed to nomp_run is not valid.
[Error] projects/nomp/libnomp/src/opencl.c:72 clCreateProgramWithSource failed with error code: 32569.

However, the same program works with the Cuda backend.

No, I meant the OpenCL examples here, not the nomp examples. Do they fail on Debug mode as well? Just trying to see if this is a OpenCL issue or a OpenCL+nomp issue.

@nipunayf
Copy link
Contributor Author

nipunayf commented Jun 1, 2023

Do the OpenCL examples in nomp-org/examples built on debug mode throws the same error?

Yes, the vector addition example fails with the following error:

[Error] projects/nomp/libnomp/src/nomp.c:422 Kernel id -1 passed to nomp_run is not valid.
[Error] projects/nomp/libnomp/src/opencl.c:72 clCreateProgramWithSource failed with error code: 32569.

However, the same program works with the Cuda backend.

No, I meant the OpenCL examples here, not the nomp examples. Do they fail on Debug mode as well? Just trying to see if this is a OpenCL issue or a OpenCL+nomp issue.

No, they do not fail. Looks like it is an OpenCL + Nomp issue.

@thilinarmtb
Copy link
Contributor

I see thanks for checking. Only thing different between the builds is the compilation flags I think. Not sure why
they cause failures. Will need more investigative work to figure out the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants