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

Improve system library warning when running under profiler #2540

Open
4 tasks done
huiyuxie opened this issue Nov 6, 2024 · 1 comment
Open
4 tasks done

Improve system library warning when running under profiler #2540

huiyuxie opened this issue Nov 6, 2024 · 1 comment

Comments

@huiyuxie
Copy link
Contributor

huiyuxie commented Nov 6, 2024

Sanity checks (read this first, then remove this section)

  • Make sure you're reporting a bug; for general questions, please use Discourse or
    Slack.

  • If you're dealing with a performance issue, make sure you disable scalar iteration
    (CUDA.allowscalar(false)). Only file an issue if that shows scalar iteration happening
    in CUDA.jl or Base Julia, as opposed to your own code.

  • If you're seeing an error message, follow the error message instructions, if any
    (e.g. inspect code with @device_code_warntype). If you can't solve the problem using
    that information, make sure to post it as part of the issue.

  • Always ensure you're using the latest version of CUDA.jl, and if possible, please
    check the master branch to see if your issue hasn't been resolved yet.

If your bug is still valid, please go ahead and fill out the template below.

Describe the bug
When connecting to Nsight Compute I always get warning

julia> using CUDA
┌ Warning: CUDA runtime library `nvperf_target.dll` was loaded from a system path, `C:\Program Files\NVIDIA Corporation\Nsight Compute 2024.3.2\target\windows-desktop-win7-x64\nvperf_target.dll`.
│
│ This may cause errors. Ensure that you have not set the LD_LIBRARY_PATH
│ environment variable, or that it does not contain paths to CUDA libraries.
│
│ In any other case, please file an issue.
└ @ CUDA C:\Users\huiyu\.julia\packages\CUDA\2kjXI\src\initialization.jl:219

but I have never set the LD_LIBRARY_PATH environment variable.

To reproduce

The Minimal Working Example (MWE) for this bug:

$ ncu --mode=launch julia
julia> using CUDA
Manifest.toml

Paste your Manifest.toml here, or accurately describe which version of CUDA.jl and its dependencies (GPUArrays.jl, GPUCompiler.jl, LLVM.jl) you are using.

Expected behavior

No warning

Version info

Details on Julia:

julia> versioninfo()
Julia Version 1.11.1
Commit 8f5b7ca12a (2024-10-16 10:53 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: 20 × 13th Gen Intel(R) Core(TM) i9-13900H
  WORD_SIZE: 64
  LLVM: libLLVM-16.0.6 (ORCJIT, goldmont)
Threads: 1 default, 0 interactive, 1 GC (on 20 virtual cores)

Details on CUDA:

julia> CUDA.versioninfo()
CUDA runtime 12.6, artifact installation
CUDA driver 12.7
NVIDIA driver 565.90.0

CUDA libraries:
- CUBLAS: 12.6.3
- CURAND: 10.3.7
- CUFFT: 11.3.0
- CUSOLVER: 11.7.1
- CUSPARSE: 12.5.4
- CUPTI: 2024.3.2 (API 24.0.0)
- NVML: 12.0.0+565.90

Julia packages:
- CUDA: 5.5.2
- CUDA_Driver_jll: 0.10.3+0
- CUDA_Runtime_jll: 0.15.3+0

Toolchain:
- Julia: 1.11.1
- LLVM: 16.0.6

1 device:
  0: NVIDIA GeForce RTX 4060 Laptop GPU (sm_89, 7.617 GiB / 7.996 GiB available)
@huiyuxie huiyuxie added the bug Something isn't working label Nov 6, 2024
@maleadt
Copy link
Member

maleadt commented Nov 6, 2024

This is expected when running under Nsight, which preloads libraries to hook certain operations. Message could probably be improved, e.g., mentioning that this is all right when running under a profiler.

@maleadt maleadt removed the bug Something isn't working label Nov 6, 2024
@maleadt maleadt changed the title Extra warning when using Nsight Compute Improve system library warning when running under profiler Nov 6, 2024
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