-
Notifications
You must be signed in to change notification settings - Fork 1
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
'cl_complex_mul.h' file not found when using GPU #56
Comments
sorry for mistake mentioned above, but the error still exists: (base) akikawa@DESKTOP-90048F8:/images/$ dw
--gpu --iter 40 --out ./dw_GPU/dw_dapi.tif ./raw/dapi.tif ./dw/dw_dapi_psf.tif
Reading /mnt/f/spatial_data/processed/20240526_PRISM30_3D_IOH_processed/airlocalize_stack/T0001/C001/raw/dapi.tif
Reading /mnt/f/spatial_data/processed/20240526_PRISM30_3D_IOH_processed/airlocalize_stack/T0001/C001/dw/dw_dapi_psf.tif
Output: ./dw_GPU/dw_dapi.tif(.log.txt)
Deconvolving using shbcl2 (using inplace)
image: [2304x2304x40], psf: [181x181x79], job: [2484x2484x118]
1 error generated.
Sorry, a fatal error occurred and dw can't continue
File: /home/akikawa/sources/repos/deconwolf/src/cl_util.c, Function: clu_kernel_newa Line: 1777
This happened when trying to compile the kernel cl_complex_mul
Build log:
error: /home/akikawa/.cache/pocl/kcache/tempfile_4oVsnG.cl:1:10: 'cl_complex_mul.h' file not found
Device NVIDIA GeForce RTX 3090 failed to build the program and the clinfo: Number of platforms 1
Platform Name Portable Computing Language
Platform Vendor The pocl project
Platform Version OpenCL 3.0 PoCL 6.1-pre main-0-g07e16eb1 Linux, Debug+Asserts, RELOC, LLVM 14.0.0, SLEEF, CUDA, POCL_DEBUG
Platform Profile FULL_PROFILE
Platform Extensions cl_khr_icd cl_khr_priority_hints cl_khr_throttle_hints cl_pocl_content_size cl_ext_buffer_device_address
Platform Extensions with Version cl_khr_icd 0x400000 (1.0.0)
cl_khr_priority_hints 0x400000 (1.0.0)
cl_khr_throttle_hints 0x400000 (1.0.0)
cl_pocl_content_size 0x400000 (1.0.0)
cl_ext_buffer_device_address 0x1000 (0.1.0)
Platform Numeric Version 0xc00000 (3.0.0)
Platform Extensions function suffix POCL
Platform Host timer resolution 1ns
Platform Name Portable Computing Language
Number of devices 1
Device Name NVIDIA GeForce RTX 3090
Device Vendor NVIDIA Corporation
Device Vendor ID 0x10de
Device Version OpenCL 3.0 PoCL HSTR: CUDA-sm_86
Device Numeric Version 0xc00000 (3.0.0)
Driver Version 6.1-pre main-0-g07e16eb1
Device OpenCL C Version OpenCL C 1.2 PoCL
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_images 0xc00000 (3.0.0)
__opencl_c_atomic_order_acq_rel 0xc00000 (3.0.0)
__opencl_c_atomic_order_seq_cst 0xc00000 (3.0.0)
__opencl_c_atomic_scope_device 0xc00000 (3.0.0)
__opencl_c_program_scope_global_variables 0xc00000 (3.0.0)
__opencl_c_generic_address_space 0xc00000 (3.0.0)
__opencl_c_fp16 0xc00000 (3.0.0)
__opencl_c_fp64 0xc00000 (3.0.0)
Latest comfornace test passed (n/a)
Device Type GPU
Device Topology (NV) PCI-E, 0000:01:00.0
Device Profile FULL_PROFILE
Device Available Yes
Compiler Available Yes
Linker Available Yes
Max compute units 82
Max clock frequency 1755MHz
Compute Capability (NV) 8.6
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
Preferred work group size multiple (kernel) 32
Warp size (NV) 32
Max sub-groups per work group 32
Preferred / native vector sizes
char 1 / 1
short 1 / 1
int 1 / 1
long 1 / 1
half 0 / 0 (cl_khr_fp16)
float 1 / 1
double 1 / 1 (cl_khr_fp64)
Half-precision Floating-point support (cl_khr_fp16)
Denormals No
Infinity and NANs Yes
Round to nearest Yes
Round to zero No
Round to infinity No
IEEE754-2008 fused multiply-add No
Support is emulated in software No
Single-precision Floating-point support (core)
Denormals Yes
Infinity and NANs Yes
Round to nearest Yes
Round to zero Yes
Round to infinity Yes
IEEE754-2008 fused multiply-add Yes
Support is emulated in software No
Correctly-rounded divide and sqrt operations No
Double-precision Floating-point support (cl_khr_fp64)
Denormals Yes
Infinity and NANs Yes
Round to nearest Yes
Round to zero Yes
Round to infinity Yes
IEEE754-2008 fused multiply-add Yes
Support is emulated in software No
Address bits 64, Little-Endian
Global memory size 25769148416 (24GiB)
Error Correction support No
Max memory allocation 24437063680 (22.76GiB)
Unified memory for Host and Device No
Integrated memory (NV) No
Shared Virtual Memory (SVM) capabilities (core)
Coarse-grained buffer sharing Yes
Fine-grained buffer sharing Yes
Fine-grained system sharing No
Atomics No
Minimum alignment for any data type 128 bytes
Alignment of base address 4096 bits (512 bytes)
Preferred alignment for atomics
SVM 64 bytes
Global 64 bytes
Local 64 bytes
Atomic memory capabilities relaxed, work-group scope
Atomic fence capabilities relaxed, acquire/release, work-group scope
Max size for global variable 0
Preferred total size of global vars 0
Global Memory cache type None
Image support No
Pipe support No
Max number of pipe args 0
Max active pipe reservations 0
Max pipe packet size 0
Local memory type Local
Local memory size 49152 (48KiB)
Registers per block (NV) 65536
Max number of constant args 8
Max constant buffer size 65536 (64KiB)
Generic address space support Yes
Max size of kernel argument 4352 (4.25KiB)
Queue properties (on host)
Out-of-order execution No
Profiling Yes
Device enqueue capabilities (n/a)
Queue properties (on device)
Out-of-order execution No
Profiling No
Preferred size 0
Max size 0
Max queues on device 0
Max events on device 0
Prefer user sync for interop Yes
Profiling timer resolution 1ns
Execution capabilities
Run OpenCL kernels Yes
Run native kernels No
Non-uniform work-groups No
Work-group collective functions No
Sub-group independent forward progress Yes
Kernel execution timeout (NV) Yes
Concurrent copy and kernel execution (NV) Yes
Number of async copy engines 5
IL version (n/a)
ILs with version (n/a)
printf() buffer size 16777216 (16MiB)
Built-in kernels pocl.mul.i32;pocl.add.i32;pocl.dnn.conv2d_int8_relu;pocl.sgemm.local.f32;pocl.sgemm.tensor.f16f16f32;pocl.sgemm_ab.tensor.f16f16f32;pocl.abs.f32;pocl.add.i8;org.khronos.openvx.scale_image.nn.u8;org.khronos.openvx.scale_image.bl.u8;org.khronos.openvx.tensor_convert_depth.wrap.u8.f32
Built-in kernels with version pocl.mul.i32 0x402000 (1.2.0)
pocl.add.i32 0x402000 (1.2.0)
pocl.dnn.conv2d_int8_relu 0x402000 (1.2.0)
pocl.sgemm.local.f32 0x402000 (1.2.0)
pocl.sgemm.tensor.f16f16f32 0x402000 (1.2.0)
pocl.sgemm_ab.tensor.f16f16f32 0x402000 (1.2.0)
pocl.abs.f32 0x402000 (1.2.0)
pocl.add.i8 0x402000 (1.2.0)
org.khronos.openvx.scale_image.nn.u8 0x402000 (1.2.0)
org.khronos.openvx.scale_image.bl.u8 0x402000 (1.2.0)
org.khronos.openvx.tensor_convert_depth.wrap.u8.f32 0x402000 (1.2.0)
Device Extensions cl_khr_byte_addressable_store cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_nv_device_attribute_query cl_khr_fp16 cl_khr_fp64 cl_ext_buffer_device_address
Device Extensions with Version cl_khr_byte_addressable_store 0x400000 (1.0.0)
cl_khr_global_int32_base_atomics 0x400000 (1.0.0)
cl_khr_global_int32_extended_atomics 0x400000 (1.0.0)
cl_khr_local_int32_base_atomics 0x400000 (1.0.0)
cl_khr_local_int32_extended_atomics 0x400000 (1.0.0)
cl_khr_int64_base_atomics 0x400000 (1.0.0)
cl_khr_int64_extended_atomics 0x400000 (1.0.0)
cl_nv_device_attribute_query 0x400000 (1.0.0)
cl_khr_fp16 0x400000 (1.0.0)
cl_khr_fp64 0x400000 (1.0.0)
cl_ext_buffer_device_address 0x1000 (0.1.0)
NULL platform behavior
clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...) No platform
clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...) No platform
clCreateContext(NULL, ...) [default] No platform
clCreateContext(NULL, ...) [other] Success [POCL]
clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT) Success (1)
Platform Name Portable Computing Language
Device Name NVIDIA GeForce RTX 3090
clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU) Success (1)
Platform Name Portable Computing Language
Device Name NVIDIA GeForce RTX 3090
clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL) Success (1)
Platform Name Portable Computing Language
Device Name NVIDIA GeForce RTX 3090 |
I realized that this is a problem caused by opencl not supporting wsl2. So this is not the problem of dw. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Failed when using --gpu
and when using cpu it works well:
I wonder what the problem should be and if someone can give me some debugging directions. Thanks
btw, I am running it on wsl2 and have installed pocl as described in microsoft/WSL#6951 so that my opencl can detect GPU:
The text was updated successfully, but these errors were encountered: