Skip to content

Commit f59f05f

Browse files
committed
Do not unconditionally import nvdisasm from CUDA_Compiler_jll
The symbol won't be available on platforms which don't support CUDA, causing the warning ``` 1 dependency had output during precompilation: ┌ CUDATools │ WARNING: Imported binding CUDA_Compiler_jll.nvdisasm was undeclared at import time during import to CUDATools. └ ```
1 parent 13e9ac3 commit f59f05f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

CUDATools/src/CUDATools.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ using GPUCompiler
2323
using GPUCompiler: CompilerJob, methodinstance
2424
using LLVM
2525

26-
using CUDA_Compiler_jll: nvdisasm
26+
using CUDA_Compiler_jll: CUDA_Compiler_jll
2727

2828
import Preferences
2929
using Printf

CUDATools/src/reflection.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ function disassemble_cubin(io::IO, cubin::Vector{Cchar}; raw::Bool)
126126
write(cubin_io, cubin)
127127
flush(cubin_io)
128128

129-
cmd = `$(nvdisasm()) --print-code --print-line-info $cubin_path`
129+
cmd = `$(CUDA_Compiler_jll.nvdisasm()) --print-code --print-line-info $cubin_path`
130130
for line in readlines(cmd)
131131
if !raw
132132
# nvdisasm output is pretty verbose;

0 commit comments

Comments
 (0)