-
Notifications
You must be signed in to change notification settings - Fork 130
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
clCreatePipe error -30 #157
Comments
Hello, I don't have access to this device to test, but here are a few things to try: Error code -30 is (from: https://www.khronos.org/registry/OpenCL/specs/3.0-unified/html/OpenCL_API.html#clCreatePipe)
When I run the "header example" from my PR #151 on my device, I'm seeing:
I've also verified that the pipe properties are Could you try an example that uses pipes without the C++ bindings, or even the pipes CTS test, to see if it works as expected? Since your device supports OpenCL 2.x pipes should be supported, but it may also be interesting to query some of the pipe device properties (see this part of the OpenCL 3.0 spec appendix) to see what your device returns - clinfo should be able to help. |
Here is my debug code at opencl.hpp I also try the test_pipes at CTS. |
Odd, the What exactly changed so that "the error is gone"? While I'm encouraged by this and that the pipes CTS test is passing, I still can't quite explain why it started working. Thanks! |
|
It appears that this is a issue still? The code put out in the SDK, on my initial attempts, errors on clCreatePipe inside of cl::pipe constructor, changing flags = 201, as suggested, causes the program to not throw, and I assume work correctly? If this could be issued as a bug or something, or has been, or is, IDK. |
What is with 201? this is effectively just CL_MEM_READ_WRITE and no CL_MEM_HOST_NO_ACCESS, is it still working normally? please help. My output is somewhat like what is printed above. |
Hi, I just build OpenCL SDK on my laptop. And all its samples code can work. But when I try to build and run the examples at CLHPP all these three programs try to create a
cl::Pipe
cl::Pipe aPipe(sizeof(cl_int), numElements / 2);
throw "clCreatePipe -30"....I don't know how can I fix this. Please give me some hints.
Thanks for all.
Here is enumopencl output:
Platform:
Name: AMD Accelerated Parallel Processing
Vendor: Advanced Micro Devices, Inc.
Driver Version: OpenCL 2.1 AMD-APP (3075.13)
Device[0]:
Type: GPU
Name: gfx902
Vendor: Advanced Micro Devices, Inc.
Device Version: OpenCL 2.0 AMD-APP (3075.13)
Device Profile: FULL_PROFILE
Driver Version: 3075.13 (PAL,HSAIL)
And there is another problem:
When the trivial example compile failed the kernel code:
Plat: OpenCL 2.1 AMD-APP (3075.13) Errors for failed build for all devices Device: gfx902 C:\Users\luyao\AppData\Local\Temp\\OCL4476T1.cl:1:1: error: unknown type name 'sakfdjnksajfnksajnfsa' sakfdjnksajfnksajnfsa ^ C:\Users\luyao\AppData\Local\Temp\\OCL4476T1.cl:1:22: error: expected identifier or '(' sakfdjnksajfnksajnfsa ^ 2 errors generated.
It seems no problem at these lines. What's the problem is? Please give me some hints. Sorry to make trouble you.
The text was updated successfully, but these errors were encountered: