diff --git a/.bumpversion.cfg b/.bumpversion.cfg index 1c87b1a..710ddf6 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 0.3.16 +current_version = 0.3.17 commit = True tag = False diff --git a/Project.toml b/Project.toml index aea7c5e..0f24f2f 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ authors = ["Jason Eu ", "Michael F. Herbst "] name = "Libxc" uuid = "66e17ffc-8502-11e9-23b5-c9248d0eb96d" -version = "0.3.16" +version = "0.3.17" [compat] CUDA = "5" diff --git a/ext/LibxcCudaExt.jl b/ext/LibxcCudaExt.jl index 5b5c520..99fa43c 100644 --- a/ext/LibxcCudaExt.jl +++ b/ext/LibxcCudaExt.jl @@ -11,9 +11,12 @@ else end function __init__() - if !Libxc_GPU_jll.is_available() && CUDA.runtime_version() ≥ v"12" - @warn("Libxc_GPU_jll currently not available for CUDA 12. " * - """Please use CUDA 11 for GPU support (i.e. `CUDA.set_runtime_version!(v"11.8")`)""") + if CUDA.functional() + if !Libxc_GPU_jll.is_available() && CUDA.runtime_version() ≥ v"12" + @warn("Libxc_GPU_jll currently not available for CUDA 12. " * + "Please use CUDA 11 for GPU support " * + """(i.e. `CUDA.set_runtime_version!(v"11.8")`)""") + end end end