Skip to content

KataGo v1.16.3 cuGetProcAddress_v2 Returns CUDA_ERROR_NOT_FOUND for D3D/WGL Functions and cuGraphInstantiateWithParams_ptsz #521

@KurococLiu

Description

@KurococLiu

zluda_trace logs (tarball/zip file)

zluda_log_katago.zip

Description

Description

When running KataGo (version katago-v1.16.3-cuda12.1-cudnn8.9.7-windows-x64) with ZLUDA as the CUDA compatibility layer on an AMD Radeon RX 7800 XT, the cuGetProcAddress_v2 function returns CUDA_ERROR_NOT_FOUND for several functions, primarily Direct3D (D3D9, D3D10, D3D11) and WGL interoperability functions, as well as cuGraphInstantiateWithParams_ptsz. Additionally, an empty symbol query (symbol: "") fails, which may indicate a minor issue in the application.

Expected Behavior

All queried CUDA functions should return CUDA_SUCCESS with valid function pointers (pfn), including graphics interoperability functions if supported by ZLUDA. KataGo should fully utilize GPU acceleration for neural network inference and self-play training without errors or performance degradation.

Actual Behavior

Most core CUDA functions (e.g., cuInit, cuMemcpy, cuLaunchKernel) are loaded successfully with CUDA_SUCCESS.

Graphics interoperability functions (e.g., cuWGLGetDevice, cuD3D11GetDevice, cuD3D9GetDevice) fail with CUDA_ERROR_NOT_FOUND, returning pfn: 0x0.

The function cuGraphInstantiateWithParams_ptsz fails with CUDA_ERROR_NOT_FOUND, which may impact CUDA Graph functionality.

An empty symbol query (symbol: "") fails with CUDA_ERROR_NOT_FOUND, which is expected but could indicate a minor bug in KataGo's function querying logic.

Steps to reproduce

  1. Download KataGo v1.16.3 for Windows with Zluda 5-preview.136.
  2. Extract the zip file to a directory (e.g., C:\KataGo).
  3. Download a pre-trained model (e.g., from https://katagotraining.org/) and place it in the KataGo directory (e.g., kata1-b18c384nbt-20230523.bin.gz).
  4. Copy nvcuda.dll(rename to cublas64_12.dll) and cudnn64_9.dll(rename to cudnn64_8.dll) to the KataGo directory
  5. Run KataGo with GTP mode:
cd C:\KataGo
katago.exe gtp -model kata1-b18c384nbt-20230523.bin.gz -config gtp_example.cfg

ZLUDA version

5-preview.136

Operating System

Windows 11 (version 24H2 26100.3476)

GPU

AMD Radeon RX 7800 XT

Metadata

Metadata

Assignees

Labels

zluda_trace logszluda_trace log files for a particular application

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions