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

err: can not find opencl #17

Open
kuyIv opened this issue Aug 9, 2022 · 1 comment
Open

err: can not find opencl #17

kuyIv opened this issue Aug 9, 2022 · 1 comment

Comments

@kuyIv
Copy link

kuyIv commented Aug 9, 2022

./megpeak -d opencl
err: can not find opencl
err: failed to load opencl func: clGetPlatformIDs
opencl error -32: CL_INVALID_PLATFORM (clGetPlatformIDs(0, nullptr, &nr_platforms) at /home/kuylv/Downloads/MegPeak-main/src/opencl/common.cpp:OpenCLEnv:438)

aarch64 Phytium
NVIDIA GeForce RTX 2060
515.65.01

clinfo

Platform Name NVIDIA CUDA
Number of devices 1
Device Name NVIDIA GeForce RTX 2060
Device Vendor NVIDIA Corporation
Device Vendor ID 0x10de
Device Version OpenCL 3.0 CUDA
Device UUID e38925ec-2f68-5836-3031-5170d70c9401
Driver UUID e38925ec-2f68-5836-3031-5170d70c9401
Valid Device LUID No
Device LUID 0000-000000000000
Device Node Mask 0
Device Numeric Version 0xc00000 (3.0.0)
Driver Version 515.65.01
Device OpenCL C Version OpenCL C 1.2
Device OpenCL C all versions OpenCL C 0x400000 (1.0.0)
OpenCL C 0x401000 (1.1.0)
OpenCL C 0x402000 (1.2.0)
OpenCL C 0xc00000 (3.0.0)
Device OpenCL C features __opencl_c_fp64 0xc00000 (3.0.0)
__opencl_c_images 0xc00000 (3.0.0)
__opencl_c_int64 0xc00000 (3.0.0)
__opencl_c_3d_image_writes 0xc00000 (3.0.0)
Latest comfornace test passed v2021-02-01-00
Device Type GPU
Device Topology (NV) PCI-E, 0000:05:00.0
Device Profile FULL_PROFILE
Device Available Yes
Compiler Available Yes
Linker Available Yes
Max compute units 30
Max clock frequency 1680MHz
Compute Capability (NV) 7.5
Device Partition (core)
Max number of sub-devices 1
Supported partition types None
Supported affinity domains (n/a)
Max work item dimensions 3
Max work item sizes 1024x1024x64
Max work group size 1024
Preferred work group size multiple (device) 32

@chenqy4933
Copy link
Collaborator

The OpenCL stub can't find the driver of OpenCL, please check the dynamic OpenCL driver library in these Path :

"/usr/lib64/libOpenCL.so", "/usr/local/lib64/libOpenCL.so",

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

2 participants