# LoadError: Could not find any suitable device for this configuration

**URL:** https://discourse.julialang.org/t/loaderror-could-not-find-any-suitable-device-for-this-configuration/96253
**Category:** GPU
**Tags:** question, windows, cuda, error
**Created:** [March 17, 2023, 5:05pm UTC](https://discourse.julialang.org/t/loaderror-could-not-find-any-suitable-device-for-this-configuration/96253 "2023-03-17T17:05:20Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![stmorg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stmorg/32/35344_2.png) [@stmorg](https://discourse.julialang.org/u/stmorg)
#### Post date: [March 17, 2023, 5:05pm UTC](https://discourse.julialang.org/t/loaderror-could-not-find-any-suitable-device-for-this-configuration/96253/1 "2023-03-17T17:05:21Z")

</div>

Hello,

Currently setting up julia on my new machine and having some trouble with getting CUDA to work. I am getting errors during test. Below is the output with JULIA\_DEBUG=all

```julia
Pkg.test("CUDA")
┌ Debug: Loading cache file C:\Users\Sam\.julia\compiled\v1.8\Preferences\pWSk8_zLrKK.ji for Preferences [21216c6a-2e73-6563-6e65-726566657250]
└ @ Base loading.jl:806
┌ Debug: Loading cache file C:\Users\Sam\.julia\compiled\v1.8\JLLWrappers\7Zgw7_zLrKK.ji for JLLWrappers [692b3bcd-3c85-4b1f-b108-f13ce0eb3210]
└ @ Base loading.jl:806
┌ Debug: Loading cache file C:\Users\Sam\.julia\compiled\v1.8\CUDA_Driver_jll\QJyk7_zLrKK.ji for CUDA_Driver_jll [4ee394cb-3365-5eb0-8335-949819d2adfc]
└ @ Base loading.jl:806
┌ Debug: CUDA version override: 12.1
└ @ Main C:\Users\Sam\.julia\packages\CUDA_Runtime_jll\cq9MZ\.pkg\platform_augmentation.jl:28
┌ Debug: Selected CUDA toolkit: 12.1.0
└ @ Main C:\Users\Sam\.julia\packages\CUDA_Runtime_jll\cq9MZ\.pkg\platform_augmentation.jl:131
┌ Debug: Loading cache file C:\Users\Sam\.julia\compiled\v1.8\Preferences\pWSk8_zLrKK.ji for Preferences [21216c6a-2e73-6563-6e65-726566657250]
└ @ Base loading.jl:806
┌ Debug: Loading cache file C:\Users\Sam\.julia\compiled\v1.8\JLLWrappers\7Zgw7_zLrKK.ji for JLLWrappers [692b3bcd-3c85-4b1f-b108-f13ce0eb3210]
└ @ Base loading.jl:806
┌ Debug: Loading cache file C:\Users\Sam\.julia\compiled\v1.8\CUDA_Driver_jll\QJyk7_zLrKK.ji for CUDA_Driver_jll [4ee394cb-3365-5eb0-8335-949819d2adfc]
└ @ Base loading.jl:806
┌ Debug: Loading cache file C:\Users\Sam\.julia\compiled\v1.8\CUDA_Runtime_jll\Hs50y_AO5oN.ji for CUDA_Runtime_jll [76a88914-d11a-5bdc-97e0-2f5a05c973a2]
└ @ Base loading.jl:806
┌ Debug: CUDA version override: 12.1
└ @ CUDA_Runtime_jll C:\Users\Sam\.julia\packages\CUDA_Runtime_jll\cq9MZ\.pkg\platform_augmentation.jl:28
┌ Debug: Selected CUDA toolkit: 12.1.0
└ @ CUDA_Runtime_jll C:\Users\Sam\.julia\packages\CUDA_Runtime_jll\cq9MZ\.pkg\platform_augmentation.jl:131
     Testing CUDA
┌ Debug: Loading cache file C:\Users\Sam\.julia\compiled\v1.8\Preferences\pWSk8_zLrKK.ji for Preferences [21216c6a-2e73-6563-6e65-726566657250]
└ @ Base loading.jl:806
┌ Debug: Loading cache file C:\Users\Sam\.julia\compiled\v1.8\JLLWrappers\7Zgw7_zLrKK.ji for JLLWrappers [692b3bcd-3c85-4b1f-b108-f13ce0eb3210]
└ @ Base loading.jl:806
┌ Debug: Loading cache file C:\Users\Sam\.julia\compiled\v1.8\CUDA_Driver_jll\QJyk7_zLrKK.ji for CUDA_Driver_jll [4ee394cb-3365-5eb0-8335-949819d2adfc]
└ @ Base loading.jl:806
┌ Debug: CUDA version override: 12.1
└ @ Main C:\Users\Sam\.julia\packages\CUDA_Runtime_jll\cq9MZ\.pkg\platform_augmentation.jl:28
┌ Debug: Selected CUDA toolkit: 12.1.0
└ @ Main C:\Users\Sam\.julia\packages\CUDA_Runtime_jll\cq9MZ\.pkg\platform_augmentation.jl:131
┌ Debug: Using _parent_ dep graph
└ @ Pkg.Operations C:\workdir\usr\share\julia\stdlib\v1.8\Pkg\src\Operations.jl:1596
      Status `C:\Users\Sam\AppData\Local\Temp\jl_He8QSg\Project.toml`
┌ Debug: Loading cache file C:\Users\Sam\.julia\compiled\v1.8\Preferences\pWSk8_zLrKK.ji for Preferences [21216c6a-2e73-6563-6e65-726566657250]
└ @ Base loading.jl:806
┌ Debug: Loading cache file C:\Users\Sam\.julia\compiled\v1.8\JLLWrappers\7Zgw7_zLrKK.ji for JLLWrappers [692b3bcd-3c85-4b1f-b108-f13ce0eb3210]
└ @ Base loading.jl:806
┌ Debug: Loading cache file C:\Users\Sam\.julia\compiled\v1.8\CUDA_Driver_jll\QJyk7_zLrKK.ji for CUDA_Driver_jll [4ee394cb-3365-5eb0-8335-949819d2adfc]
└ @ Base loading.jl:806
┌ Debug: CUDA version override: 12.1
└ @ Main C:\Users\Sam\.julia\packages\CUDA_Runtime_jll\cq9MZ\.pkg\platform_augmentation.jl:28
┌ Debug: Selected CUDA toolkit: 12.1.0
└ @ Main C:\Users\Sam\.julia\packages\CUDA_Runtime_jll\cq9MZ\.pkg\platform_augmentation.jl:131
  [79e6a3ab] Adapt v3.6.1
  [ab4f0b2a] BFloat16s v0.4.2
  [052768ef] CUDA v4.0.1 `https://github.com/JuliaGPU/CUDA.jl.git#master`
  [864edb3b] DataStructures v0.18.13
  [7a1cc6ca] FFTW v1.6.0
  [0c68f7d7] GPUArrays v8.6.4
  [a98d9a8b] Interpolations v0.14.7
  [872c559c] NNlib v0.8.19
  [276daf66] SpecialFunctions v2.2.0
  [a759f4b9] TimerOutputs v0.5.22
  [76a88914] CUDA_Runtime_jll v0.4.0+0
  [ade2ca70] Dates `@stdlib/Dates`
  [8ba89e20] Distributed `@stdlib/Distributed`
  [37e2e46d] LinearAlgebra `@stdlib/LinearAlgebra`
  [de0858da] Printf `@stdlib/Printf`
  [3fa0cd96] REPL `@stdlib/REPL`
  [9a3f8284] Random `@stdlib/Random`
  [2f01184e] SparseArrays `@stdlib/SparseArrays`
  [10745b16] Statistics `@stdlib/Statistics`
  [8dfed614] Test `@stdlib/Test`
      Status `C:\Users\Sam\AppData\Local\Temp\jl_He8QSg\Manifest.toml`
┌ Debug: Loading cache file C:\Users\Sam\.julia\compiled\v1.8\Preferences\pWSk8_zLrKK.ji for Preferences [21216c6a-2e73-6563-6e65-726566657250]
└ @ Base loading.jl:806
┌ Debug: Loading cache file C:\Users\Sam\.julia\compiled\v1.8\JLLWrappers\7Zgw7_zLrKK.ji for JLLWrappers [692b3bcd-3c85-4b1f-b108-f13ce0eb3210]
└ @ Base loading.jl:806
┌ Debug: Loading cache file C:\Users\Sam\.julia\compiled\v1.8\CUDA_Driver_jll\QJyk7_zLrKK.ji for CUDA_Driver_jll [4ee394cb-3365-5eb0-8335-949819d2adfc]
└ @ Base loading.jl:806
┌ Debug: CUDA version override: 12.1
└ @ Main C:\Users\Sam\.julia\packages\CUDA_Runtime_jll\cq9MZ\.pkg\platform_augmentation.jl:28
┌ Debug: Selected CUDA toolkit: 12.1.0
└ @ Main C:\Users\Sam\.julia\packages\CUDA_Runtime_jll\cq9MZ\.pkg\platform_augmentation.jl:131
  [621f4979] AbstractFFTs v1.3.1
  [79e6a3ab] Adapt v3.6.1
  [13072b0f] AxisAlgorithms v1.0.1
  [ab4f0b2a] BFloat16s v0.4.2
  [fa961155] CEnum v0.4.2
  [052768ef] CUDA v4.0.1 `https://github.com/JuliaGPU/CUDA.jl.git#master`
  [1af6417a] CUDA_Runtime_Discovery v0.1.1
  [d360d2e6] ChainRulesCore v1.15.7
  [9e997f8a] ChangesOfVariables v0.1.6
  [34da2185] Compat v4.6.1
  [864edb3b] DataStructures v0.18.13
  [ffbed154] DocStringExtensions v0.9.3
  [e2ba6199] ExprTools v0.1.9
  [7a1cc6ca] FFTW v1.6.0
  [0c68f7d7] GPUArrays v8.6.4
  [46192b85] GPUArraysCore v0.1.4
  [61eb1bfa] GPUCompiler v0.18.0
  [a98d9a8b] Interpolations v0.14.7
  [3587e190] InverseFunctions v0.1.8
  [92d709cd] IrrationalConstants v0.2.2
  [692b3bcd] JLLWrappers v1.4.1
  [929cbde3] LLVM v4.16.0
  [2ab3a3ac] LogExpFunctions v0.3.23
  [872c559c] NNlib v0.8.19
  [6fe1bfb0] OffsetArrays v1.12.9
  [bac558e1] OrderedCollections v1.4.1
  [21216c6a] Preferences v1.3.0
  [74087812] Random123 v1.6.0
  [e6cf234a] RandomNumbers v1.5.3
  [c84ed2f1] Ratios v0.4.3
  [189a3867] Reexport v1.2.2
  [ae029012] Requires v1.3.0
  [276daf66] SpecialFunctions v2.2.0
  [90137ffa] StaticArrays v1.5.17
  [1e83bf80] StaticArraysCore v1.4.0
  [a759f4b9] TimerOutputs v0.5.22
  [efce3f68] WoodburyMatrices v0.5.5
  [4ee394cb] CUDA_Driver_jll v0.4.0+0
  [76a88914] CUDA_Runtime_jll v0.4.0+0
  [f5851436] FFTW_jll v3.3.10+0
  [1d5cc7b8] IntelOpenMP_jll v2018.0.3+2
⌅ [dad2f222] LLVMExtra_jll v0.0.16+2
  [856f044c] MKL_jll v2022.2.0+0
  [efe28fd5] OpenSpecFun_jll v0.5.5+0
  [0dad84c5] ArgTools v1.1.1 `@stdlib/ArgTools`
  [56f22d72] Artifacts `@stdlib/Artifacts`
  [2a0f44e3] Base64 `@stdlib/Base64`
  [ade2ca70] Dates `@stdlib/Dates`
  [8ba89e20] Distributed `@stdlib/Distributed`
  [f43a241f] Downloads v1.6.0 `@stdlib/Downloads`
  [7b1f6079] FileWatching `@stdlib/FileWatching`
  [b77e0a4c] InteractiveUtils `@stdlib/InteractiveUtils`
  [4af54fe1] LazyArtifacts `@stdlib/LazyArtifacts`
  [b27032c2] LibCURL v0.6.3 `@stdlib/LibCURL`
  [76f85450] LibGit2 `@stdlib/LibGit2`
  [8f399da3] Libdl `@stdlib/Libdl`
  [37e2e46d] LinearAlgebra `@stdlib/LinearAlgebra`
  [56ddb016] Logging `@stdlib/Logging`
  [d6f4376e] Markdown `@stdlib/Markdown`
  [a63ad114] Mmap `@stdlib/Mmap`
  [ca575930] NetworkOptions v1.2.0 `@stdlib/NetworkOptions`
  [44cfe95a] Pkg v1.8.0 `@stdlib/Pkg`
  [de0858da] Printf `@stdlib/Printf`
  [3fa0cd96] REPL `@stdlib/REPL`
  [9a3f8284] Random `@stdlib/Random`
  [ea8e919c] SHA v0.7.0 `@stdlib/SHA`
  [9e88b42a] Serialization `@stdlib/Serialization`
  [1a1011a3] SharedArrays `@stdlib/SharedArrays`
  [6462fe0b] Sockets `@stdlib/Sockets`
  [2f01184e] SparseArrays `@stdlib/SparseArrays`
  [10745b16] Statistics `@stdlib/Statistics`
  [fa267f1f] TOML v1.0.0 `@stdlib/TOML`
  [a4e569a6] Tar v1.10.1 `@stdlib/Tar`
  [8dfed614] Test `@stdlib/Test`
  [cf7118a7] UUIDs `@stdlib/UUIDs`
  [4ec0a83e] Unicode `@stdlib/Unicode`
  [e66e0078] CompilerSupportLibraries_jll v1.0.1+0 `@stdlib/CompilerSupportLibraries_jll`
  [deac9b47] LibCURL_jll v7.84.0+0 `@stdlib/LibCURL_jll`
  [29816b5a] LibSSH2_jll v1.10.2+0 `@stdlib/LibSSH2_jll`
  [c8ffd9c3] MbedTLS_jll v2.28.0+0 `@stdlib/MbedTLS_jll`
  [14a3606d] MozillaCACerts_jll v2022.2.1 `@stdlib/MozillaCACerts_jll`
  [4536629a] OpenBLAS_jll v0.3.20+0 `@stdlib/OpenBLAS_jll`
  [05823500] OpenLibm_jll v0.8.1+0 `@stdlib/OpenLibm_jll`
  [83775a58] Zlib_jll v1.2.12+3 `@stdlib/Zlib_jll`
  [8e850b90] libblastrampoline_jll v5.1.1+0 `@stdlib/libblastrampoline_jll`
  [8e850ede] nghttp2_jll v1.48.0+0 `@stdlib/nghttp2_jll`
  [3f19e933] p7zip_jll v17.4.0+0 `@stdlib/p7zip_jll`
        Info Packages marked with ⌅ have new versions available but compatibility constraints restrict them from upgrading.
┌ Debug: Loading cache file C:\Users\Sam\.julia\compiled\v1.8\Preferences\pWSk8_zLrKK.ji for Preferences [21216c6a-2e73-6563-6e65-726566657250]
└ @ Base loading.jl:806
┌ Debug: Loading cache file C:\Users\Sam\.julia\compiled\v1.8\JLLWrappers\7Zgw7_zLrKK.ji for JLLWrappers [692b3bcd-3c85-4b1f-b108-f13ce0eb3210]
└ @ Base loading.jl:806
┌ Debug: Loading cache file C:\Users\Sam\.julia\compiled\v1.8\CUDA_Driver_jll\QJyk7_zLrKK.ji for CUDA_Driver_jll [4ee394cb-3365-5eb0-8335-949819d2adfc]
└ @ Base loading.jl:806
┌ Debug: CUDA version override: 12.1
└ @ Main C:\Users\Sam\.julia\packages\CUDA_Runtime_jll\cq9MZ\.pkg\platform_augmentation.jl:28
┌ Debug: Selected CUDA toolkit: 12.1.0
└ @ Main C:\Users\Sam\.julia\packages\CUDA_Runtime_jll\cq9MZ\.pkg\platform_augmentation.jl:131
     Testing Running tests...
┌ Debug: Loading cache file C:\Users\Sam\.julia\compiled\v1.8\ExprTools\eM8wu_zLrKK.ji for ExprTools [e2ba6199-217a-4e67-a87a-7c52f15ade04]
└ @ Base loading.jl:806
┌ Debug: Loading cache file C:\Users\Sam\.julia\compiled\v1.8\TimerOutputs\hd2yD_zLrKK.ji for TimerOutputs [a759f4b9-e2f1-59dc-863e-4aeb61b1ea8f]
└ @ Base loading.jl:806
┌ Debug: Loading cache file C:\Users\Sam\.julia\compiled\v1.8\CEnum\0gyUJ_zLrKK.ji for CEnum [fa961155-64e5-5f13-b03f-caf6b980ea82]
└ @ Base loading.jl:806
┌ Debug: Loading cache file C:\Users\Sam\.julia\compiled\v1.8\Preferences\pWSk8_zLrKK.ji for Preferences [21216c6a-2e73-6563-6e65-726566657250]
└ @ Base loading.jl:806
┌ Debug: Loading cache file C:\Users\Sam\.julia\compiled\v1.8\JLLWrappers\7Zgw7_zLrKK.ji for JLLWrappers [692b3bcd-3c85-4b1f-b108-f13ce0eb3210]
└ @ Base loading.jl:806
┌ Debug: Loading cache file C:\Users\Sam\.julia\compiled\v1.8\LLVMExtra_jll\R9OeX_zLrKK.ji for LLVMExtra_jll [dad2f222-ce93-54a1-a47d-0025e8a3acab]
└ @ Base loading.jl:806
┌ Debug: Loading cache file C:\Users\Sam\.julia\compiled\v1.8\LLVM\e8NBy_zLrKK.ji for LLVM [929cbde3-209d-540e-8aea-75f648917ca0]
└ @ Base loading.jl:806
┌ Debug: Using LLVM 13.0.1 at C:\Users\Sam\AppData\Local\Programs\Julia-1.8.5\bin\libLLVM-13jl.dll
└ @ LLVM C:\Users\Sam\.julia\packages\LLVM\s3bxG\src\LLVM.jl:86
┌ Debug: Loading cache file C:\Users\Sam\.julia\compiled\v1.8\GPUCompiler\yPwef_zLrKK.ji for GPUCompiler [61eb1bfa-7361-4325-ad38-22787b887f55]
└ @ Base loading.jl:806
┌ Debug: Loading cache file C:\Users\Sam\.julia\compiled\v1.8\Requires\IyxeS_zLrKK.ji for Requires [ae029012-a4dd-5104-9daa-d747884805df]
└ @ Base loading.jl:806
┌ Debug: Loading cache file C:\Users\Sam\.julia\compiled\v1.8\Adapt\rUIgN_zLrKK.ji for Adapt [79e6a3ab-5dfb-504d-930d-738a2a938a0e]
└ @ Base loading.jl:806
┌ Debug: Loading cache file C:\Users\Sam\.julia\compiled\v1.8\Reexport\bTpYr_zLrKK.ji for Reexport [189a3867-3050-52da-a836-e630ba90ab69]
└ @ Base loading.jl:806
┌ Debug: Loading cache file C:\Users\Sam\.julia\compiled\v1.8\GPUArraysCore\qiYUe_zLrKK.ji for GPUArraysCore [46192b85-c4d5-4398-a991-12ede77f4527]
└ @ Base loading.jl:806
┌ Debug: Loading cache file C:\Users\Sam\.julia\compiled\v1.8\GPUArrays\v5u0T_zLrKK.ji for GPUArrays [0c68f7d7-f131-5f86-a1c3-88cf8149b2d7]
└ @ Base loading.jl:806
┌ Debug: Loading cache file C:\Users\Sam\.julia\compiled\v1.8\BFloat16s\iiZ8G_zLrKK.ji for BFloat16s [ab4f0b2a-ad5b-11e8-123f-65d77653426b]
└ @ Base loading.jl:806
┌ Debug: Loading cache file C:\Users\Sam\.julia\compiled\v1.8\CUDA_Driver_jll\QJyk7_zLrKK.ji for CUDA_Driver_jll [4ee394cb-3365-5eb0-8335-949819d2adfc]
└ @ Base loading.jl:806
┌ Debug: Loading cache file C:\Users\Sam\.julia\compiled\v1.8\CUDA_Runtime_jll\Hs50y_AO5oN.ji for CUDA_Runtime_jll [76a88914-d11a-5bdc-97e0-2f5a05c973a2]
└ @ Base loading.jl:806
┌ Debug: Loading cache file C:\Users\Sam\.julia\compiled\v1.8\RandomNumbers\pgCpR_zLrKK.ji for RandomNumbers [e6cf234a-135c-5ec9-84dd-332b85af5143]
└ @ Base loading.jl:806
┌ Debug: Loading cache file C:\Users\Sam\.julia\compiled\v1.8\Random123\1imiM_zLrKK.ji for Random123 [74087812-796a-5b5d-8853-05524746bad3]
└ @ Base loading.jl:806
┌ Debug: Requires conditionally ran code in 0.162124 seconds: `RandomNumbers` detected `Random123`
└ @ Requires C:\Users\Sam\.julia\packages\RandomNumbers\3pD1N\src\RandomNumbers.jl:38
┌ Debug: Loading cache file C:\Users\Sam\.julia\compiled\v1.8\Compat\GSFWK_zLrKK.ji for Compat [34da2185-b29b-5c13-b0c7-acf172513d20]
└ @ Base loading.jl:806
┌ Debug: Loading cache file C:\Users\Sam\.julia\compiled\v1.8\ChainRulesCore\G6ax7_zLrKK.ji for ChainRulesCore [d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4]
└ @ Base loading.jl:806
┌ Debug: Loading cache file C:\Users\Sam\.julia\compiled\v1.8\AbstractFFTs\Di3HZ_zLrKK.ji for AbstractFFTs [621f4979-c628-5d54-868e-fcf4e3e8185c]
└ @ Base loading.jl:806
┌ Debug: Loading cache file C:\Users\Sam\.julia\compiled\v1.8\CUDA\oWw5k_zLrKK.ji for CUDA [052768ef-5323-5732-b1bb-66c8b64840ba]
└ @ Base loading.jl:806
┌ Info: System information:
│ CUDA runtime 12.1, artifact installation
│ CUDA driver 12.1
│ NVIDIA driver 531.29.0
│
│ Libraries:
│ - CUBLAS: 12.1.0
│ - CURAND: 10.3.2
│ - CUFFT: 11.0.2
│ - CUSOLVER: 11.4.4
│ - CUSPARSE: 12.0.2
│ - CUPTI: 18.0.0
│ - NVML: 12.0.0+531.29
│
│ Toolchain:
│ - Julia: 1.8.5
│ - LLVM: 13.0.1
│ - PTX ISA support: 3.2, 4.0, 4.1, 4.2, 4.3, 5.0, 6.0, 6.1, 6.3, 6.4, 6.5, 7.0, 7.1, 7.2
│ - Device capability support: sm_37, sm_50, sm_52, sm_53, sm_60, sm_61, sm_62, sm_70, sm_72, sm_75, sm_80, sm_86
│
│ 1 device:
└ 0: NVIDIA GeForce RTX 4070 Ti (sm_89, 9.852 GiB / 11.994 GiB available)
ERROR: LoadError: Could not find any suitable device for this configuration
Stacktrace:
 [1] error(s::String)
   @ Base .\error.jl:35
 [2] top-level scope
   @ C:\Users\Sam\.julia\packages\CUDA\yJDUj\test\runtests.jl:175
 [3] include(fname::String)
   @ Base.MainInclude .\client.jl:476
 [4] top-level scope
   @ none:6
in expression starting at C:\Users\Sam\.julia\packages\CUDA\yJDUj\test\runtests.jl:175
ERROR: Package CUDA errored during testing
Stacktrace:
  [1] pkgerror(msg::String)
    @ Pkg.Types C:\Users\Sam\AppData\Local\Programs\Julia-1.8.5\share\julia\stdlib\v1.8\Pkg\src\Types.jl:67
  [2] test(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; coverage::Bool, julia_args::Cmd, test_args::Cmd, test_fn::Nothing, force_latest_compatible_version::Bool, allow_earlier_backwards_compatible_versions::Bool, allow_reresolve::Bool)
    @ Pkg.Operations C:\Users\Sam\AppData\Local\Programs\Julia-1.8.5\share\julia\stdlib\v1.8\Pkg\src\Operations.jl:1813
  [3] test(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; coverage::Bool, test_fn::Nothing, julia_args::Cmd, test_args::Cmd, force_latest_compatible_version::Bool, allow_earlier_backwards_compatible_versions::Bool, allow_reresolve::Bool, kwargs::Base.Pairs{Symbol, Base.TTY, Tuple{Symbol}, NamedTuple{(:io,), Tuple{Base.TTY}}})
    @ Pkg.API C:\Users\Sam\AppData\Local\Programs\Julia-1.8.5\share\julia\stdlib\v1.8\Pkg\src\API.jl:434
  [4] test(pkgs::Vector{Pkg.Types.PackageSpec}; io::Base.TTY, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ Pkg.API C:\Users\Sam\AppData\Local\Programs\Julia-1.8.5\share\julia\stdlib\v1.8\Pkg\src\API.jl:156
  [5] test(pkgs::Vector{Pkg.Types.PackageSpec})
    @ Pkg.API C:\Users\Sam\AppData\Local\Programs\Julia-1.8.5\share\julia\stdlib\v1.8\Pkg\src\API.jl:145
  [6] #test#87
    @ C:\Users\Sam\AppData\Local\Programs\Julia-1.8.5\share\julia\stdlib\v1.8\Pkg\src\API.jl:144 [inlined]
  [7] test
    @ C:\Users\Sam\AppData\Local\Programs\Julia-1.8.5\share\julia\stdlib\v1.8\Pkg\src\API.jl:144 [inlined]
  [8] #test#86
    @ C:\Users\Sam\AppData\Local\Programs\Julia-1.8.5\share\julia\stdlib\v1.8\Pkg\src\API.jl:143 [inlined]
  [9] test(pkg::String)
    @ Pkg.API C:\Users\Sam\AppData\Local\Programs\Julia-1.8.5\share\julia\stdlib\v1.8\Pkg\src\API.jl:143
 [10] top-level scope
    @ REPL[5]:1
 [11] top-level scope
    @ C:\Users\Sam\.julia\packages\CUDA\yJDUj\src\initialization.jl:163

julia> ENV["CUDA_PATH"]
"C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.1"

```

Not sure if the error is easy to fix or not, and I’m happy to provide any more relevant info.  
Running a NVIDIA RTX 4070 ti with up to date drivers and CUDA.jl master branch.

---

<div class="post-metadata">

### Author: ![maleadt](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/maleadt/32/10097_2.png) [@maleadt](https://discourse.julialang.org/u/maleadt)
#### Post date: [March 17, 2023, 9:34pm UTC](https://discourse.julialang.org/t/loaderror-could-not-find-any-suitable-device-for-this-configuration/96253/2 "2023-03-17T21:34:33Z")

</div>

That’s only for the tests, CUDA.jl itself should work properly.  
Could you verify? In fact, please also open an issue, as we probably should just run the tests albeit with a warning at the top that some things may break.

---

<div class="post-metadata">

### Author: ![stmorg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stmorg/32/35344_2.png) [@stmorg](https://discourse.julialang.org/u/stmorg)
#### Post date: [March 20, 2023, 4:58pm UTC](https://discourse.julialang.org/t/loaderror-could-not-find-any-suitable-device-for-this-configuration/96253/3 "2023-03-20T16:58:02Z")

</div>

Thanks for your response. That’s correct CUDA itself seemed to work fine with simple operations ( I didn’t test anything beyond arithmetic / Matrix multiplication), but the tests failed. I’ll open an issue on Github
