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

Unexpected error CUDA error in func set_constants at line 142 invalid device symbol on CUDA device #27

Open
Myridium opened this issue Mar 13, 2021 · 4 comments

Comments

@Myridium
Copy link

Describe the bug
Mining fails once PoW window starts.

To Reproduce
Steps to reproduce the behavior:
Use the miner with an NVIDIA RTX 3080. Mining fails once the PoW window starts.

Expected behavior
Mining should work. If mining fails, the error should be caught immediately, not only after waiting for the next PoW window. Please, implement a PoW trial run when the miner starts.

Output

....
 m 17:47:11 zilminer 0:47 A0 0.00 h - cu0 0.00
 m 17:47:21 zilminer 0:47 A0 0.00 h - cu0 0.00
 i 17:47:26 zilminer ZIL PoW Window Start
 i 17:47:26 zilminer Send dummy work to init DAG
 i 17:47:26 zilminer Epoch : 0 Difficulty : 1.07 Gh
 i 17:47:26 zilminer Job: 00000000… eu1-zil.shardpool.io [75.2.71.34:5000]
cu 17:47:26 cuda-0   Generating DAG + Light : 1.02 GB
cu 17:47:26 cuda-0   Unexpected error CUDA error in func set_constants at line 142 invalid device symbol on CUDA device 09:00.0
cu 17:47:26 cuda-0   Mining suspended ...
 m 17:47:31 zilminer 0:48 A0 0.00 h - cu0 0.00
 m 17:47:41 zilminer 0:48 A0 0.00 h - cu0 0.00
 m 17:47:51 zilminer 0:48 A0 0.00 h - cu0 0.00
 i 17:48:00 zilminer Epoch : 0 Difficulty : 4.29 Gh
 i 17:48:00 zilminer Job: 8ae8df2e… eu1-zil.shardpool.io [75.2.71.34:5000]
 m 17:48:01 zilminer 0:48 A0 0.00 h - cu0 0.00
 i 17:48:05 zilminer Job: 2248ddc4… eu1-zil.shardpool.io [75.2.71.34:5000]
 m 17:48:11 zilminer 0:48 A0 0.00 h - cu0 0.00
 m 17:48:21 zilminer 0:48 A0 0.00 h - cu0 0.00
 i 17:48:28 zilminer Job: dfe87f2e… eu1-zil.shardpool.io [75.2.71.34:5000]
 m 17:48:31 zilminer 0:49 A0 0.00 h - cu0 0.00
 i 17:48:33 zilminer Job: 2248ddc4… eu1-zil.shardpool.io [75.2.71.34:5000]
 i 17:48:39 zilminer Job: 23a375e1… eu1-zil.shardpool.io [75.2.71.34:5000]
 m 17:48:41 zilminer 0:49 A0 0.00 h - cu0 0.00
 i 17:48:45 zilminer Job: 462f4b49… eu1-zil.shardpool.io [75.2.71.34:5000]
 i 17:48:50 zilminer Job: 2248ddc4… eu1-zil.shardpool.io [75.2.71.34:5000]
 m 17:48:51 zilminer 0:49 A0 0.00 h - cu0 0.00
 m 17:49:01 zilminer 0:49 A0 0.00 h - cu0 0.00
 i 17:49:07 zilminer Job: c302c1e0… eu1-zil.shardpool.io [75.2.71.34:5000]
 m 17:49:11 zilminer 0:49 A0 0.00 h - cu0 0.00
 i 17:49:12 zilminer Job: 6f7256cf… eu1-zil.shardpool.io [75.2.71.34:5000]
 m 17:49:21 zilminer 0:49 A0 0.00 h - cu0 0.00
 i 17:49:24 zilminer Job: 27543b62… eu1-zil.shardpool.io [75.2.71.34:5000]
 i 17:49:29 zilminer Job: 00000000… eu1-zil.shardpool.io [75.2.71.34:5000]
 m 17:49:31 zilminer 0:50 A0 0.00 h - cu0 0.00
 m 17:49:41 zilminer 0:50 A0 0.00 h - cu0 0.00
 m 17:49:51 zilminer 0:50 A0 0.00 h - cu0 0.00
 m 17:50:01 zilminer 0:50 A0 0.00 h - cu0 0.00
 m 17:50:11 zilminer 0:50 A0 0.00 h - cu0 0.00
 m 17:50:21 zilminer 0:50 A0 0.00 h - cu0 0.00
 m 17:50:31 zilminer 0:51 A0 0.00 h - cu0 0.00
 m 17:50:41 zilminer 0:51 A0 0.00 h - cu0 0.00
 m 17:50:51 zilminer 0:51 A0 0.00 h - cu0 0.00
 m 17:51:01 zilminer 0:51 A0 0.00 h - cu0 0.00
 i 17:51:04 zilminer Job: 00000000… eu1-zil.shardpool.io [75.2.71.34:5000]
 i 17:51:04 zilminer ZIL PoW Window End
 m 17:51:11 zilminer 0:51 A0 0.00 h - cu0 0.00
 m 17:51:21 zilminer 0:51 A0 0.00 h - cu0 0.00
....

Environment (please complete the following information):
Output of uname -a:

Linux hostname 5.11.4-arch1-1 #1 SMP PREEMPT Sun, 07 Mar 2021 18:00:49 +0000 x86_64 GNU/Linux

Additional context
I have OpenCL for NVIDIA installed. Output of clinfo:

Number of platforms                               1
  Platform Name                                   NVIDIA CUDA
  Platform Vendor                                 NVIDIA Corporation
  Platform Version                                OpenCL 1.2 CUDA 11.2.153
  Platform Profile                                FULL_PROFILE
  Platform Extensions                             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_fp64 cl_khr_byte_addressable_store cl_khr_icd cl_khr_gl_sharing cl_nv_compiler_options cl_nv_device_attribute_query cl_nv_pragma_unroll cl_nv_copy_opts cl_nv_create_buffer cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_device_uuid
  Platform Extensions function suffix             NV

  Platform Name                                   NVIDIA CUDA
Number of devices                                 1
  Device Name                                     GeForce RTX 3070
  Device Vendor                                   NVIDIA Corporation
  Device Vendor ID                                0x10de
  Device Version                                  OpenCL 1.2 CUDA
  Device UUID                                     7afbddb7-8aea-d1d1-9e46-2b7e41906cdd
  Driver UUID                                     7afbddb7-8aea-d1d1-9e46-2b7e41906cdd
  Valid Device LUID                               No
  Device LUID                                     0100-000000000000
  Device Node Mask                                0
  Driver Version                                  460.56
  Device OpenCL C Version                         OpenCL C 1.2 
  Device Type                                     GPU
  Device Topology (NV)                            PCI-E, 0000:09:00.0
  Device Profile                                  FULL_PROFILE
  Device Available                                Yes
  Compiler Available                              Yes
  Linker Available                                Yes
  Max compute units                               46
  Max clock frequency                             1815MHz
  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 (kernel)     32
  Warp size (NV)                                  32
  Preferred / native vector sizes                 
    char                                                 1 / 1       
    short                                                1 / 1       
    int                                                  1 / 1       
    long                                                 1 / 1       
    half                                                 0 / 0        (n/a)
    float                                                1 / 1       
    double                                               1 / 1        (cl_khr_fp64)
  Half-precision Floating-point support           (n/a)
  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  Yes
  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                              8366784512 (7.792GiB)
  Error Correction support                        No
  Max memory allocation                           2091696128 (1.948GiB)
  Unified memory for Host and Device              No
  Integrated memory (NV)                          No
  Minimum alignment for any data type             128 bytes
  Alignment of base address                       4096 bits (512 bytes)
  Global Memory cache type                        Read/Write
  Global Memory cache size                        1318912 (1.258MiB)
  Global Memory cache line size                   128 bytes
  Image support                                   Yes
    Max number of samplers per kernel             32
    Max size for 1D images from buffer            268435456 pixels
    Max 1D or 2D image array size                 2048 images
    Max 2D image size                             32768x32768 pixels
    Max 3D image size                             16384x16384x16384 pixels
    Max number of read image args                 256
    Max number of write image args                32
  Local memory type                               Local
  Local memory size                               49152 (48KiB)
  Registers per block (NV)                        65536
  Max number of constant args                     9
  Max constant buffer size                        65536 (64KiB)
  Max size of kernel argument                     4352 (4.25KiB)
  Queue properties                                
    Out-of-order execution                        Yes
    Profiling                                     Yes
  Prefer user sync for interop                    No
  Profiling timer resolution                      1000ns
  Execution capabilities                          
    Run OpenCL kernels                            Yes
    Run native kernels                            No
    Kernel execution timeout (NV)                 Yes
  Concurrent copy and kernel execution (NV)       Yes
    Number of async copy engines                  2
  printf() buffer size                            1048576 (1024KiB)
  Built-in kernels                                (n/a)
  Device Extensions                               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_fp64 cl_khr_byte_addressable_store cl_khr_icd cl_khr_gl_sharing cl_nv_compiler_options cl_nv_device_attribute_query cl_nv_pragma_unroll cl_nv_copy_opts cl_nv_create_buffer cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_device_uuid

NULL platform behavior
  clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...)  NVIDIA CUDA
  clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...)   Success [NV]
  clCreateContext(NULL, ...) [default]            Success [NV]
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT)  No platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU)  No platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM)  Invalid device type for platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL)  No platform

ICD loader properties
  ICD loader Name                                 OpenCL ICD Loader
  ICD loader Vendor                               OCL Icd free software
  ICD loader Version                              2.2.14
  ICD loader Profile                              OpenCL 3.0
@jjcagle
Copy link
Contributor

jjcagle commented May 13, 2021

It's because no one has updated it to recognize RTX 3000 series cards.

@jjcagle
Copy link
Contributor

jjcagle commented May 14, 2021

I have created a fork that adds support for RTX 3000 GPUs available here.

@RashidAwang
Copy link

what about gtx1060. i have issue 'no opencl platform found' i don't know how to fix it.

@jjcagle
Copy link
Contributor

jjcagle commented Jun 27, 2021

I am using a 1060 as well as a 3060 and am not having any issues with either of them.

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

3 participants