-
Notifications
You must be signed in to change notification settings - Fork 237
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
Update example_ctrsm.c #361
Open
LocutusOfBorg
wants to merge
1
commit into
clMathLibraries:master
Choose a base branch
from
LocutusOfBorg:patch-1
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
That patch makes Maybe this is the intended behavior:
(completely untested) |
I don't honestly know, I just checked some examples and came out with something building. They are examples so I didn't care too much about sanity |
this brings |
Fixup a failure due to [ 16%] Building C object CMakeFiles/example_ctrsm.dir/example_ctrsm.c.o In file included from /usr/include/CL/cl.h:20, from /usr/include/clBLAS.h:35, from /tmp/example_ctrsm.c:25: /usr/include/CL/cl_version.h:22:9: note: '#pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 300 (OpenCL 3.0)' 22 | #pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 300 (OpenCL 3.0)") | ^~~~~~~ /tmp/example_ctrsm.c: In function 'main': /tmp/example_ctrsm.c:95:48: error: passing argument 2 of 'clGetPlatformIDs' from incompatible pointer type [-Wincompatible-pointer-types] 95 | err = clGetPlatformIDs(sizeof( platform ), &platform, NULL); | ^~~~~~~~~ | | | struct _cl_platform_id *** /usr/include/CL/cl.h:956:35: note: expected 'struct _cl_platform_id **' but argument is of type 'struct _cl_platform_id ***' 956 | cl_platform_id * platforms, | ~~~~~~~~~~~~~~~~~^~~~~~~~~ /tmp/example_ctrsm.c:114:5: warning: 'clCreateCommandQueue' is deprecated [-Wdeprecated-declarations] 114 | queue = clCreateCommandQueue(ctx, device, 0, &err); | ^~~~~ /usr/include/CL/cl.h:1914:1: note: declared here 1914 | clCreateCommandQueue(cl_context context, | ^~~~~~~~~~~~~~~~~~~~
LocutusOfBorg
force-pushed
the
patch-1
branch
from
September 5, 2024 09:29
c8df417
to
14038d7
Compare
ok pushed thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixup a failure due to
[ 16%] Building C object CMakeFiles/example_ctrsm.dir/example_ctrsm.c.o In file included from /usr/include/CL/cl.h:20,
from /usr/include/clBLAS.h:35,
from /tmp/example_ctrsm.c:25:
/usr/include/CL/cl_version.h:22:9: note: '#pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 300 (OpenCL 3.0)'
22 | #pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 300 (OpenCL 3.0)")
| ^~~~~~~
/tmp/example_ctrsm.c: In function 'main':
/tmp/example_ctrsm.c:95:48: error: passing argument 2 of 'clGetPlatformIDs' from incompatible pointer type [-Wincompatible-pointer-types]
95 | err = clGetPlatformIDs(sizeof( platform ), &platform, NULL);
| ^~~~~~~~~
| |
| struct _cl_platform_id ***
/usr/include/CL/cl.h:956:35: note: expected 'struct _cl_platform_id **' but argument is of type 'struct _cl_platform_id ***'
956 | cl_platform_id * platforms,
| ~~~~~~~~~~~~~~~~~^~~~~~~~~
/tmp/example_ctrsm.c:114:5: warning: 'clCreateCommandQueue' is deprecated [-Wdeprecated-declarations]
114 | queue = clCreateCommandQueue(ctx, device, 0, &err);
| ^~~~~
/usr/include/CL/cl.h:1914:1: note: declared here
1914 | clCreateCommandQueue(cl_context context,
| ^~~~~~~~~~~~~~~~~~~~