diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index d44e088005..0807a2da27 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -33,6 +33,7 @@ steps: - "1.10" - "1.11" - "1.12" + - "1.13" - "nightly" adjustments: - with: @@ -47,7 +48,7 @@ steps: - label: "CUDA {{matrix.cuda}}" plugins: - JuliaCI/julia#v1: - version: "1.11" + version: "1.12" - JuliaCI/julia-test#v1: test_args: "--quickfail core base libraries" - JuliaCI/julia-coverage#v1: @@ -68,6 +69,7 @@ steps: matrix: setup: cuda: + # - "13.1" - "13.0" - "12.9" - "12.8" @@ -78,10 +80,6 @@ steps: - "12.2" - "12.1" - "12.0" - adjustments: - - with: - cuda: "13.0" - soft_fail: true commands: | echo -e "[CUDA_Runtime_jll]\nversion = \"{{matrix.cuda}}\"" >LocalPreferences.toml @@ -149,7 +147,7 @@ steps: #- label: "NNlib.jl" # plugins: # - JuliaCI/julia#v1: - # version: "1.11" + # version: "1.12" # - JuliaCI/julia-coverage#v1: # dirs: # - src @@ -258,7 +256,7 @@ steps: - label: "GPU-less environment" plugins: - JuliaCI/julia#v1: - version: "1.11" + version: "1.12" - JuliaCI/julia-coverage#v1: dirs: - src @@ -290,7 +288,7 @@ steps: - label: "Compute sanitizer" plugins: - JuliaCI/julia#v1: - version: "1.11" + version: "1.12" - JuliaCI/julia-test#v1: test_args: "--sanitize core base" - JuliaCI/julia-coverage#v1: @@ -312,7 +310,7 @@ steps: - label: "Legacy memory allocator" plugins: - JuliaCI/julia#v1: - version: "1.11" + version: "1.12" - JuliaCI/julia-test#v1: test_args: "--quickfail core base" - JuliaCI/julia-coverage#v1: @@ -365,7 +363,7 @@ steps: - label: "MultiGPU" plugins: - JuliaCI/julia#v1: - version: "1.11" + version: "1.12" - JuliaCI/julia-test#v1: test_args: "--gpu=0,1 --quickfail core base libraries" - JuliaCI/julia-coverage#v1: @@ -391,7 +389,7 @@ steps: - label: ":books: Documentation" plugins: - JuliaCI/julia#v1: - version: "1.11" + version: "1.12" command: | julia --project -e ' println("--- :julia: Instantiating project") diff --git a/.github/workflows/Container.yml b/.github/workflows/Container.yml index 840c008bc7..c0c1cd71f1 100644 --- a/.github/workflows/Container.yml +++ b/.github/workflows/Container.yml @@ -27,8 +27,8 @@ jobs: strategy: matrix: - julia: ["1.10", "1.11"] - cuda: ["11.8", "12.6"] + julia: ["1.10", "1.11", "1.12", "1.13-nightly"] + cuda: ["11.8", "12.6", "13.1"] platform: ["linux/amd64"] os: ["ubuntu-24.04"] include: diff --git a/Project.toml b/Project.toml index 00dfce0197..9647ceb9e2 100644 --- a/Project.toml +++ b/Project.toml @@ -61,7 +61,7 @@ ChainRulesCore = "1" Crayons = "4" EnzymeCore = "0.8.2" ExprTools = "0.1" -GPUArrays = "11.3.1" +GPUArrays = "11.4.0" GPUCompiler = "1.4" GPUToolbox = "0.3, 1" KernelAbstractions = "0.9.38" diff --git a/docs/Manifest.toml b/docs/Manifest.toml index c43197ca51..8f0d5806cf 100644 --- a/docs/Manifest.toml +++ b/docs/Manifest.toml @@ -1,8 +1,8 @@ # This file is machine-generated - editing it directly is not advised -julia_version = "1.11.7" +julia_version = "1.12.4" manifest_format = "2.0" -project_hash = "2aafadb9f9c63ec7093546e4d0c9d0b1fd4ec576" +project_hash = "790732f6923e79c5e6ebad5bfab4a77ca3cd984f" [[deps.ANSIColoredPrinters]] git-tree-sha1 = "574baf8110975760d391c710b6341da1afa48d8c" @@ -67,9 +67,9 @@ version = "1.1.2" [[deps.BFloat16s]] deps = ["LinearAlgebra", "Printf", "Random"] -git-tree-sha1 = "0a6d6d072cb5f2baeba7667023075801f6ea4a7d" +git-tree-sha1 = "e386db8b4753b42caac75ac81d0a4fe161a68a97" uuid = "ab4f0b2a-ad5b-11e8-123f-65d77653426b" -version = "0.6.0" +version = "0.6.1" [[deps.Base64]] uuid = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f" @@ -87,10 +87,10 @@ uuid = "fa961155-64e5-5f13-b03f-caf6b980ea82" version = "0.5.0" [[deps.CUDA]] -deps = ["AbstractFFTs", "Adapt", "BFloat16s", "CEnum", "CUDA_Compiler_jll", "CUDA_Driver_jll", "CUDA_Runtime_Discovery", "CUDA_Runtime_jll", "Crayons", "DataFrames", "ExprTools", "GPUArrays", "GPUCompiler", "GPUToolbox", "KernelAbstractions", "LLVM", "LLVMLoopInfo", "LazyArtifacts", "Libdl", "LinearAlgebra", "Logging", "NVTX", "Preferences", "PrettyTables", "Printf", "Random", "Random123", "RandomNumbers", "Reexport", "Requires", "SparseArrays", "StaticArrays", "Statistics", "demumble_jll"] +deps = ["AbstractFFTs", "Adapt", "BFloat16s", "CEnum", "CUDA_Compiler_jll", "CUDA_Driver_jll", "CUDA_Runtime_Discovery", "CUDA_Runtime_jll", "Crayons", "DataFrames", "ExprTools", "GPUArrays", "GPUCompiler", "GPUToolbox", "KernelAbstractions", "LLVM", "LLVMLoopInfo", "LazyArtifacts", "Libdl", "LinearAlgebra", "Logging", "NVTX", "Preferences", "PrettyTables", "Printf", "Random", "Random123", "RandomNumbers", "Reexport", "SparseArrays", "StaticArrays", "Statistics", "demumble_jll"] path = ".." uuid = "052768ef-5323-5732-b1bb-66c8b64840ba" -version = "5.9.5" +version = "5.9.6" [deps.CUDA.extensions] ChainRulesCoreExt = "ChainRulesCore" @@ -106,15 +106,15 @@ version = "5.9.5" [[deps.CUDA_Compiler_jll]] deps = ["Artifacts", "CUDA_Driver_jll", "CUDA_Runtime_jll", "JLLWrappers", "LazyArtifacts", "Libdl", "TOML"] -git-tree-sha1 = "b63428872a0f60d87832f5899369837cd930b76d" +git-tree-sha1 = "e547b2202721853ec06c6d9a71c87426419ba765" uuid = "d1e2174e-dfdc-576e-b43e-73b79eb1aca8" -version = "0.3.0+0" +version = "0.4.1+1" [[deps.CUDA_Driver_jll]] deps = ["Artifacts", "JLLWrappers", "Libdl", "Pkg"] -git-tree-sha1 = "2023be0b10c56d259ea84a94dbfc021aa452f2c6" +git-tree-sha1 = "23bf4e60006b78544f753880fbcf1aa158a7669c" uuid = "4ee394cb-3365-5eb0-8335-949819d2adfc" -version = "13.0.2+0" +version = "13.1.0+2" [[deps.CUDA_Runtime_Discovery]] deps = ["Libdl"] @@ -130,15 +130,15 @@ version = "0.19.2+0" [[deps.CUDNN_jll]] deps = ["Artifacts", "CUDA_Runtime_jll", "JLLWrappers", "LazyArtifacts", "Libdl", "TOML"] -git-tree-sha1 = "cf92130f820a5c92607e2a333d2d86d9bf30a694" +git-tree-sha1 = "dff9a69017686c95f1fd601c63c088244b3db75b" uuid = "62b44479-cb7b-5706-934f-f13b2eb2e645" -version = "9.13.0+0" +version = "9.17.1+0" [[deps.CUTENSOR_jll]] deps = ["Artifacts", "CUDA_Runtime_jll", "CompilerSupportLibraries_jll", "JLLWrappers", "LazyArtifacts", "Libdl", "TOML"] -git-tree-sha1 = "70d3e03b381c8ed5ea385930078d6240b575cd8a" +git-tree-sha1 = "60dd053eebe8c8691a8235ff778896006662956c" uuid = "35b6c64b-1ee1-5834-92a3-3f624899209a" -version = "2.3.1+0" +version = "2.4.1+0" [[deps.CodecZlib]] deps = ["TranscodingStreams", "Zlib_jll"] @@ -146,22 +146,6 @@ git-tree-sha1 = "962834c22b66e32aa10f7611c08c8ca4e20749a9" uuid = "944b1d66-785c-5afd-91f1-9de20f533193" version = "0.7.8" -[[deps.ColorTypes]] -deps = ["FixedPointNumbers", "Random"] -git-tree-sha1 = "67e11ee83a43eb71ddc950302c53bf33f0690dfe" -uuid = "3da002f7-5984-5a60-b8a6-cbb66c0b333f" -version = "0.12.1" -weakdeps = ["StyledStrings"] - - [deps.ColorTypes.extensions] - StyledStringsExt = "StyledStrings" - -[[deps.Colors]] -deps = ["ColorTypes", "FixedPointNumbers", "Reexport"] -git-tree-sha1 = "37ea44092930b1811e666c3bc38065d7d87fcc74" -uuid = "5ae59095-9a9b-59fe-a467-6f913c188581" -version = "0.13.1" - [[deps.Compat]] deps = ["TOML", "UUIDs"] git-tree-sha1 = "9d8a54ce4b17aa5bdce0ea5c34bc5e7c340d16ad" @@ -175,7 +159,7 @@ weakdeps = ["Dates", "LinearAlgebra"] [[deps.CompilerSupportLibraries_jll]] deps = ["Artifacts", "Libdl"] uuid = "e66e0078-7015-5450-92f7-15fbd957f2ae" -version = "1.1.1+0" +version = "1.3.0+1" [[deps.Crayons]] git-tree-sha1 = "249fe38abf76d48563e2f4556bebd215aa317e15" @@ -216,14 +200,14 @@ version = "0.9.5" [[deps.Documenter]] deps = ["ANSIColoredPrinters", "AbstractTrees", "Base64", "CodecZlib", "Dates", "DocStringExtensions", "Downloads", "Git", "IOCapture", "InteractiveUtils", "JSON", "Logging", "Markdown", "MarkdownAST", "Pkg", "PrecompileTools", "REPL", "RegistryInstances", "SHA", "TOML", "Test", "Unicode"] -git-tree-sha1 = "352b9a04e74edd16429aec79f033620cf8e780d4" +git-tree-sha1 = "b37458ae37d8bdb643d763451585cd8d0e5b4a9e" uuid = "e30172f5-a6a5-5a46-863b-614d45cd2de4" -version = "1.15.0" +version = "1.16.1" [[deps.Downloads]] deps = ["ArgTools", "FileWatching", "LibCURL", "NetworkOptions"] uuid = "f43a241f-c20a-4ad4-852c-f6b1247861c6" -version = "1.6.0" +version = "1.7.0" [[deps.Expat_jll]] deps = ["Artifacts", "JLLWrappers", "Libdl"] @@ -240,12 +224,6 @@ version = "0.1.10" uuid = "7b1f6079-737a-58dc-b8bc-7a2ca5c1b5ee" version = "1.11.0" -[[deps.FixedPointNumbers]] -deps = ["Statistics"] -git-tree-sha1 = "05882d6995ae5c12bb5f36dd2ed3f61c98cbb172" -uuid = "53c48c17-4a7d-5ca2-90c5-79b7896eea93" -version = "0.8.5" - [[deps.Future]] deps = ["Random"] uuid = "9fa8497b-333b-5362-9e8d-4d0656e87820" @@ -253,9 +231,9 @@ version = "1.11.0" [[deps.GPUArrays]] deps = ["Adapt", "GPUArraysCore", "KernelAbstractions", "LLVM", "LinearAlgebra", "Printf", "Random", "Reexport", "ScopedValues", "Serialization", "SparseArrays", "Statistics"] -git-tree-sha1 = "18da8dd0b6aded0c47184e9d2a17573ae8257f36" +git-tree-sha1 = "cf610e3149d6bd9d3dfb63b218869394c3ee819f" uuid = "0c68f7d7-f131-5f86-a1c3-88cf8149b2d7" -version = "11.3.1" +version = "11.4.0" [deps.GPUArrays.extensions] JLD2Ext = "JLD2" @@ -271,9 +249,9 @@ version = "0.2.0" [[deps.GPUCompiler]] deps = ["ExprTools", "InteractiveUtils", "LLVM", "Libdl", "Logging", "PrecompileTools", "Preferences", "Scratch", "Serialization", "TOML", "Tracy", "UUIDs"] -git-tree-sha1 = "6e5a25bc455da8e8d88b6b7377e341e9af1929f0" +git-tree-sha1 = "966946d226e8b676ca6409454718accb18c34c54" uuid = "61eb1bfa-7361-4325-ad38-22787b887f55" -version = "1.7.5" +version = "1.8.2" [[deps.GPUToolbox]] deps = ["LLVM"] @@ -295,9 +273,9 @@ version = "3.7.0+0" [[deps.Git_jll]] deps = ["Artifacts", "Expat_jll", "JLLWrappers", "LibCURL_jll", "Libdl", "Libiconv_jll", "OpenSSL_jll", "PCRE2_jll", "Zlib_jll"] -git-tree-sha1 = "46bd50c245fe49ed87377c014a928a549b9ef7ed" +git-tree-sha1 = "dc34a3e3d96b4ed305b641e626dc14c12b7824b8" uuid = "f8c6e375-362e-5223-8a59-34ff63f689eb" -version = "2.52.0+0" +version = "2.53.0+0" [[deps.HashArrayMappedTries]] git-tree-sha1 = "2eaa69a7cab70a52b9687c8bf950a5a93ec895ae" @@ -306,9 +284,9 @@ version = "0.2.0" [[deps.IOCapture]] deps = ["Logging", "Random"] -git-tree-sha1 = "b6d6bfdd7ce25b0f9b2f6b3dd56b2673a66c8770" +git-tree-sha1 = "0ee181ec08df7d7c911901ea38baf16f755114dc" uuid = "b5f81e59-6552-4d32-b1f0-c071b021bf89" -version = "0.2.5" +version = "1.0.0" [[deps.InlineStrings]] git-tree-sha1 = "8f3d257792a522b4601c24a577954b0a8cd7334d" @@ -346,9 +324,9 @@ version = "1.7.1" [[deps.JSON]] deps = ["Dates", "Logging", "Parsers", "PrecompileTools", "StructUtils", "UUIDs", "Unicode"] -git-tree-sha1 = "5b6bb73f555bc753a6153deec3717b8904f5551c" +git-tree-sha1 = "b3ad4a0255688dcb895a52fafbaae3023b588a90" uuid = "682c06a0-de6a-54ab-a142-c8b1cf79cde6" -version = "1.3.0" +version = "1.4.0" [deps.JSON.extensions] JSONArrowExt = ["ArrowTypes"] @@ -362,6 +340,11 @@ git-tree-sha1 = "af433a10f3942e882d3c671aacb203e006a5808f" uuid = "9c1d0b0a-7046-5b2e-a33f-ea22f176ac7e" version = "0.2.1+0" +[[deps.JuliaSyntaxHighlighting]] +deps = ["StyledStrings"] +uuid = "ac6e5ff7-fb65-4e79-a425-ec3bc9c03011" +version = "1.12.0" + [[deps.KernelAbstractions]] deps = ["Adapt", "Atomix", "InteractiveUtils", "MacroTools", "PrecompileTools", "Requires", "StaticArrays", "UUIDs"] git-tree-sha1 = "b5a371fcd1d989d844a4354127365611ae1e305f" @@ -380,9 +363,9 @@ version = "0.9.39" [[deps.LLVM]] deps = ["CEnum", "LLVMExtra_jll", "Libdl", "Preferences", "Printf", "Unicode"] -git-tree-sha1 = "ce8614210409eaa54ed5968f4b50aa96da7ae543" +git-tree-sha1 = "69e4739502b7ab5176117e97e1664ed181c35036" uuid = "929cbde3-209d-540e-8aea-75f648917ca0" -version = "9.4.4" +version = "9.4.6" weakdeps = ["BFloat16s"] [deps.LLVM.extensions] @@ -420,30 +403,30 @@ uuid = "b27032c2-a3e7-50c8-80cd-2d36dbcbfd21" version = "0.6.4" [[deps.LibCURL_jll]] -deps = ["Artifacts", "LibSSH2_jll", "Libdl", "MbedTLS_jll", "Zlib_jll", "nghttp2_jll"] +deps = ["Artifacts", "LibSSH2_jll", "Libdl", "OpenSSL_jll", "Zlib_jll", "nghttp2_jll"] uuid = "deac9b47-8bc7-5906-a0fe-35ac56dc84c0" -version = "8.6.0+0" +version = "8.15.0+0" [[deps.LibGit2]] -deps = ["Base64", "LibGit2_jll", "NetworkOptions", "Printf", "SHA"] +deps = ["LibGit2_jll", "NetworkOptions", "Printf", "SHA"] uuid = "76f85450-5226-5b5a-8eaa-529ad045b433" version = "1.11.0" [[deps.LibGit2_jll]] -deps = ["Artifacts", "LibSSH2_jll", "Libdl", "MbedTLS_jll"] +deps = ["Artifacts", "LibSSH2_jll", "Libdl", "OpenSSL_jll"] uuid = "e37daf67-58a4-590a-8e99-b0245dd2ffc5" -version = "1.7.2+0" +version = "1.9.0+0" [[deps.LibSSH2_jll]] -deps = ["Artifacts", "Libdl", "MbedTLS_jll"] +deps = ["Artifacts", "Libdl", "OpenSSL_jll"] uuid = "29816b5a-b9ab-546f-933c-edad1886dfa8" -version = "1.11.0+1" +version = "1.11.3+1" [[deps.LibTracyClient_jll]] deps = ["Artifacts", "JLLWrappers", "Libdl"] -git-tree-sha1 = "d2bc4e1034b2d43076b50f0e34ea094c2cb0a717" +git-tree-sha1 = "d4e20500d210247322901841d4eafc7a0c52642d" uuid = "ad6e5548-8b26-5c9f-8ef3-ef0ad883f3a5" -version = "0.9.1+6" +version = "0.13.1+0" [[deps.Libdl]] uuid = "8f399da3-3557-5675-b5ff-fb832c97cbdb" @@ -458,13 +441,13 @@ version = "1.18.0+0" [[deps.LinearAlgebra]] deps = ["Libdl", "OpenBLAS_jll", "libblastrampoline_jll"] uuid = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" -version = "1.11.0" +version = "1.12.0" [[deps.Literate]] deps = ["Base64", "IOCapture", "JSON", "REPL"] -git-tree-sha1 = "da046be6d63304f7ba9c1bb04820fb306ba1ab12" +git-tree-sha1 = "bb26d8b8ed0fa451ce3511e99c950653a2f31fe1" uuid = "98b081ad-f1c9-55d3-8b20-4c87d4299306" -version = "2.20.1" +version = "2.21.0" [[deps.Logging]] uuid = "56ddb016-857b-54e1-b83d-db4d58db5568" @@ -476,7 +459,7 @@ uuid = "1914dd2f-81c6-5fcd-8719-6d5c9610ff09" version = "0.5.16" [[deps.Markdown]] -deps = ["Base64"] +deps = ["Base64", "JuliaSyntaxHighlighting", "StyledStrings"] uuid = "d6f4376e-aef5-505a-96c1-9c027394607a" version = "1.11.0" @@ -486,11 +469,6 @@ git-tree-sha1 = "465a70f0fc7d443a00dcdc3267a497397b8a3899" uuid = "d0879d2d-cac2-40c8-9cee-1863dc0c7391" version = "0.1.2" -[[deps.MbedTLS_jll]] -deps = ["Artifacts", "Libdl"] -uuid = "c8ffd9c3-330d-5841-b78e-0817d7145fa1" -version = "2.28.6+0" - [[deps.Missings]] deps = ["DataAPI"] git-tree-sha1 = "ec4f7fbeab05d7747bdf98eb74d130a2a2ed298d" @@ -499,13 +477,19 @@ version = "1.2.0" [[deps.MozillaCACerts_jll]] uuid = "14a3606d-f60d-562e-9121-12d972cd8159" -version = "2023.12.12" +version = "2025.11.4" [[deps.NVTX]] -deps = ["Colors", "JuliaNVTXCallbacks_jll", "Libdl", "NVTX_jll"] -git-tree-sha1 = "6b573a3e66decc7fc747afd1edbf083ff78c813a" +deps = ["JuliaNVTXCallbacks_jll", "Libdl", "NVTX_jll"] +git-tree-sha1 = "a9083c3e469e63cca454d1fc3b19472d9d92c14a" uuid = "5da4648a-3479-48b8-97b9-01cb529c0a1f" -version = "1.0.1" +version = "1.0.3" + + [deps.NVTX.extensions] + NVTXColorsExt = "Colors" + + [deps.NVTX.weakdeps] + Colors = "5ae59095-9a9b-59fe-a467-6f913c188581" [[deps.NVTX_jll]] deps = ["Artifacts", "JLLWrappers", "Libdl"] @@ -515,12 +499,12 @@ version = "3.2.2+0" [[deps.NetworkOptions]] uuid = "ca575930-c2e3-43a9-ace4-1e988b2c1908" -version = "1.2.0" +version = "1.3.0" [[deps.OpenBLAS_jll]] deps = ["Artifacts", "CompilerSupportLibraries_jll", "Libdl"] uuid = "4536629a-c528-5b80-bd46-f80d51c5b363" -version = "0.3.27+1" +version = "0.3.29+0" [[deps.OpenSSH_jll]] deps = ["Artifacts", "JLLWrappers", "Libdl", "OpenSSL_jll", "Zlib_jll"] @@ -529,8 +513,7 @@ uuid = "9bd350c2-7e96-507f-8002-3f2e150b4e1b" version = "10.2.1+0" [[deps.OpenSSL_jll]] -deps = ["Artifacts", "JLLWrappers", "Libdl"] -git-tree-sha1 = "f19301ae653233bc88b1810ae908194f07f8db9d" +deps = ["Artifacts", "Libdl"] uuid = "458c3c95-2e84-50aa-8efc-19380b2a3a95" version = "3.5.4+0" @@ -542,7 +525,7 @@ version = "1.8.1" [[deps.PCRE2_jll]] deps = ["Artifacts", "Libdl"] uuid = "efcefdf7-47ab-520b-bdef-62a2eaa19f15" -version = "10.42.0+1" +version = "10.44.0+1" [[deps.Parsers]] deps = ["Dates", "PrecompileTools", "UUIDs"] @@ -553,7 +536,7 @@ version = "2.8.3" [[deps.Pkg]] deps = ["Artifacts", "Dates", "Downloads", "FileWatching", "LibGit2", "Libdl", "Logging", "Markdown", "Printf", "Random", "SHA", "TOML", "Tar", "UUIDs", "p7zip_jll"] uuid = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f" -version = "1.11.0" +version = "1.12.1" weakdeps = ["REPL"] [deps.Pkg.extensions] @@ -567,15 +550,15 @@ version = "1.4.3" [[deps.PrecompileTools]] deps = ["Preferences"] -git-tree-sha1 = "5aa36f7049a63a1528fe8f7c3f2113413ffd4e1f" +git-tree-sha1 = "07a921781cab75691315adc645096ed5e370cb77" uuid = "aea7be01-6a6a-4083-8856-8a6e6704d82a" -version = "1.2.1" +version = "1.3.3" [[deps.Preferences]] deps = ["TOML"] -git-tree-sha1 = "0f27480397253da18fe2c12a4ba4eb9eb208bf3d" +git-tree-sha1 = "522f093a29b31a93e34eaea17ba055d850edea28" uuid = "21216c6a-2e73-6563-6e65-726566657250" -version = "1.5.0" +version = "1.5.1" [[deps.PrettyTables]] deps = ["Crayons", "LaTeXStrings", "Markdown", "PrecompileTools", "Printf", "REPL", "Reexport", "StringManipulation", "Tables"] @@ -589,11 +572,12 @@ uuid = "de0858da-6303-5e67-8744-51eddeeeb8d7" version = "1.11.0" [[deps.Profile]] +deps = ["StyledStrings"] uuid = "9abbd945-dff8-562f-b5e8-e1ebf5ef1b79" version = "1.11.0" [[deps.REPL]] -deps = ["InteractiveUtils", "Markdown", "Sockets", "StyledStrings", "Unicode"] +deps = ["InteractiveUtils", "JuliaSyntaxHighlighting", "Markdown", "Sockets", "StyledStrings", "Unicode"] uuid = "3fa0cd96-eef1-5676-8a61-b3b8758bbffb" version = "1.11.0" @@ -649,9 +633,9 @@ version = "1.3.0" [[deps.SentinelArrays]] deps = ["Dates", "Random"] -git-tree-sha1 = "712fb0231ee6f9120e005ccd56297abbc053e7e0" +git-tree-sha1 = "ebe7e59b37c400f694f52b58c93d26201387da70" uuid = "91c51154-3ec4-41a3-a24f-3f23e20d615c" -version = "1.4.8" +version = "1.4.9" [[deps.Serialization]] uuid = "9e88b42a-f829-5b0c-bbe9-9e923198166b" @@ -670,13 +654,13 @@ version = "1.2.2" [[deps.SparseArrays]] deps = ["Libdl", "LinearAlgebra", "Random", "Serialization", "SuiteSparse_jll"] uuid = "2f01184e-e22b-5df5-ae63-d93ebab69eaf" -version = "1.11.0" +version = "1.12.0" [[deps.StaticArrays]] deps = ["LinearAlgebra", "PrecompileTools", "Random", "StaticArraysCore"] -git-tree-sha1 = "b8693004b385c842357406e3af647701fe783f98" +git-tree-sha1 = "eee1b9ad8b29ef0d936e3ec9838c7ec089620308" uuid = "90137ffa-7385-5640-81b9-e52037218182" -version = "1.9.15" +version = "1.9.16" [deps.StaticArrays.extensions] StaticArraysChainRulesCoreExt = "ChainRulesCore" @@ -709,9 +693,9 @@ version = "0.4.2" [[deps.StructUtils]] deps = ["Dates", "UUIDs"] -git-tree-sha1 = "79529b493a44927dd5b13dde1c7ce957c2d049e4" +git-tree-sha1 = "9297459be9e338e546f5c4bedb59b3b5674da7f1" uuid = "ec057cc2-7a8d-4b58-b3b3-92acb9f63b42" -version = "2.6.0" +version = "2.6.2" [deps.StructUtils.extensions] StructUtilsMeasurementsExt = ["Measurements"] @@ -728,7 +712,7 @@ version = "1.11.0" [[deps.SuiteSparse_jll]] deps = ["Artifacts", "Libdl", "libblastrampoline_jll"] uuid = "bea87d4a-7f5b-5778-9afe-8cc45184846c" -version = "7.7.0+0" +version = "7.8.3+2" [[deps.TOML]] deps = ["Dates"] @@ -795,7 +779,7 @@ weakdeps = ["LLVM"] [[deps.Zlib_jll]] deps = ["Libdl"] uuid = "83775a58-1f1d-513f-b197-d71354ab007a" -version = "1.2.13+1" +version = "1.3.1+2" [[deps.cuDNN]] deps = ["CEnum", "CUDA", "CUDA_Runtime_Discovery", "CUDNN_jll"] @@ -805,15 +789,15 @@ version = "1.4.6" [[deps.cuQuantum_jll]] deps = ["Artifacts", "CUDA_Runtime_jll", "CUTENSOR_jll", "JLLWrappers", "LazyArtifacts", "Libdl", "TOML"] -git-tree-sha1 = "3e7921e233c7126e31f0353b8167f283e357ad79" +git-tree-sha1 = "e46591bfbc25eb1f6cbf22af06585216aa37e8d1" uuid = "b75408ef-6fdf-5d74-b65a-7df000ad18e6" -version = "25.9.0+0" +version = "25.11.0+0" [[deps.cuStateVec]] deps = ["CEnum", "CUDA", "CUDA_Runtime_Discovery", "cuQuantum_jll"] path = "../lib/custatevec" uuid = "92f7fd98-d22e-4c0d-85a8-6ade11b672fb" -version = "1.4.0" +version = "1.5.0" [[deps.cuTENSOR]] deps = ["CEnum", "CUDA", "CUDA_Runtime_Discovery", "CUTENSOR_jll", "LinearAlgebra", "Printf"] @@ -825,7 +809,7 @@ version = "2.3.0" deps = ["CEnum", "CUDA", "CUDA_Runtime_Discovery", "LinearAlgebra", "cuQuantum_jll", "cuTENSOR"] path = "../lib/cutensornet" uuid = "448d79b3-4b49-4e06-a5ea-00c62c0dc3db" -version = "1.4.0" +version = "1.5.0" [[deps.demumble_jll]] deps = ["Artifacts", "JLLWrappers", "Libdl"] @@ -836,14 +820,14 @@ version = "1.3.0+0" [[deps.libblastrampoline_jll]] deps = ["Artifacts", "Libdl"] uuid = "8e850b90-86db-534c-a0d3-1478176c7d93" -version = "5.11.0+0" +version = "5.15.0+0" [[deps.nghttp2_jll]] deps = ["Artifacts", "Libdl"] uuid = "8e850ede-7688-5339-a07c-302acd2aaf8d" -version = "1.59.0+0" +version = "1.64.0+1" [[deps.p7zip_jll]] -deps = ["Artifacts", "Libdl"] +deps = ["Artifacts", "CompilerSupportLibraries_jll", "Libdl"] uuid = "3f19e933-33d8-53b3-aaab-bd5110c3b7a0" -version = "17.4.0+2" +version = "17.7.0+0" diff --git a/lib/nvml/NVML.jl b/lib/nvml/NVML.jl index 4b2ee46501..c2d06ecbc9 100644 --- a/lib/nvml/NVML.jl +++ b/lib/nvml/NVML.jl @@ -12,21 +12,17 @@ import Libdl export has_nvml -function libnvml() - @memoize begin - if Sys.iswindows() - # the NVSMI dir isn't added to PATH by the installer - nvsmi = joinpath(ENV["ProgramFiles"], "NVIDIA Corporation", "NVSMI") - if isdir(nvsmi) - joinpath(nvsmi, "nvml.dll") - else - # let's just hope for the best - "nvml" - end - else - "libnvidia-ml.so.1" +# Compile-time constant for `ccall` (Julia 1.13 needs this) +const libnvml::String = @static Sys.iswindows() ? "nvml" : "libnvidia-ml.so.1" + +function __init__() + if Sys.iswindows() + # NVSMI dir isn't added to PATH by the installer; add it to Julia's DLL search path. + nvsmi = joinpath(get(ENV, "ProgramFiles", raw"C:\Program Files"), "NVIDIA Corporation", "NVSMI") + if isdir(nvsmi) && !(nvsmi in Libdl.DL_LOAD_PATH) + pushfirst!(Libdl.DL_LOAD_PATH, nvsmi) end - end::String + end end function has_nvml() @@ -37,7 +33,7 @@ function has_nvml() return false end - if Libdl.dlopen(libnvml(); throw_error=false) === nothing + if Libdl.dlopen(libnvml; throw_error=false) === nothing return false end diff --git a/lib/nvml/libnvml.jl b/lib/nvml/libnvml.jl index 525a34dab6..492f582e99 100644 --- a/lib/nvml/libnvml.jl +++ b/lib/nvml/libnvml.jl @@ -2082,58 +2082,58 @@ end const nvmlGpuFabricInfoV_t = nvmlGpuFabricInfo_v3_t @checked function nvmlInit_v2() - @gcsafe_ccall (libnvml()).nvmlInit_v2()::nvmlReturn_t + @gcsafe_ccall libnvml.nvmlInit_v2()::nvmlReturn_t end @checked function nvmlInitWithFlags(flags) - @gcsafe_ccall (libnvml()).nvmlInitWithFlags(flags::Cuint)::nvmlReturn_t + @gcsafe_ccall libnvml.nvmlInitWithFlags(flags::Cuint)::nvmlReturn_t end @checked function nvmlShutdown() - @gcsafe_ccall (libnvml()).nvmlShutdown()::nvmlReturn_t + @gcsafe_ccall libnvml.nvmlShutdown()::nvmlReturn_t end function nvmlErrorString(result) - @gcsafe_ccall (libnvml()).nvmlErrorString(result::nvmlReturn_t)::Cstring + @gcsafe_ccall libnvml.nvmlErrorString(result::nvmlReturn_t)::Cstring end @checked function nvmlSystemGetDriverVersion(version, length) initialize_context() - @gcsafe_ccall (libnvml()).nvmlSystemGetDriverVersion(version::Cstring, + @gcsafe_ccall libnvml.nvmlSystemGetDriverVersion(version::Cstring, length::Cuint)::nvmlReturn_t end @checked function nvmlSystemGetNVMLVersion(version, length) initialize_context() - @gcsafe_ccall (libnvml()).nvmlSystemGetNVMLVersion(version::Cstring, + @gcsafe_ccall libnvml.nvmlSystemGetNVMLVersion(version::Cstring, length::Cuint)::nvmlReturn_t end @checked function nvmlSystemGetCudaDriverVersion(cudaDriverVersion) initialize_context() - @gcsafe_ccall (libnvml()).nvmlSystemGetCudaDriverVersion(cudaDriverVersion::Ptr{Cint})::nvmlReturn_t + @gcsafe_ccall libnvml.nvmlSystemGetCudaDriverVersion(cudaDriverVersion::Ptr{Cint})::nvmlReturn_t end @checked function nvmlSystemGetCudaDriverVersion_v2(cudaDriverVersion) initialize_context() - @gcsafe_ccall (libnvml()).nvmlSystemGetCudaDriverVersion_v2(cudaDriverVersion::Ptr{Cint})::nvmlReturn_t + @gcsafe_ccall libnvml.nvmlSystemGetCudaDriverVersion_v2(cudaDriverVersion::Ptr{Cint})::nvmlReturn_t end @checked function nvmlSystemGetProcessName(pid, name, length) initialize_context() - @gcsafe_ccall (libnvml()).nvmlSystemGetProcessName(pid::Cuint, name::Cstring, + @gcsafe_ccall libnvml.nvmlSystemGetProcessName(pid::Cuint, name::Cstring, length::Cuint)::nvmlReturn_t end @checked function nvmlSystemGetHicVersion(hwbcCount, hwbcEntries) initialize_context() - @gcsafe_ccall (libnvml()).nvmlSystemGetHicVersion(hwbcCount::Ptr{Cuint}, + @gcsafe_ccall libnvml.nvmlSystemGetHicVersion(hwbcCount::Ptr{Cuint}, hwbcEntries::Ptr{nvmlHwbcEntry_t})::nvmlReturn_t end @checked function nvmlSystemGetTopologyGpuSet(cpuNumber, count, deviceArray) initialize_context() - @gcsafe_ccall (libnvml()).nvmlSystemGetTopologyGpuSet(cpuNumber::Cuint, + @gcsafe_ccall libnvml.nvmlSystemGetTopologyGpuSet(cpuNumber::Cuint, count::Ptr{Cuint}, deviceArray::Ptr{nvmlDevice_t})::nvmlReturn_t end @@ -2147,131 +2147,131 @@ const nvmlSystemDriverBranchInfo_t = nvmlSystemDriverBranchInfo_v1_t @checked function nvmlSystemGetDriverBranch(branchInfo, length) initialize_context() - @gcsafe_ccall (libnvml()).nvmlSystemGetDriverBranch(branchInfo::Ptr{nvmlSystemDriverBranchInfo_t}, + @gcsafe_ccall libnvml.nvmlSystemGetDriverBranch(branchInfo::Ptr{nvmlSystemDriverBranchInfo_t}, length::Cuint)::nvmlReturn_t end @checked function nvmlUnitGetCount(unitCount) initialize_context() - @gcsafe_ccall (libnvml()).nvmlUnitGetCount(unitCount::Ptr{Cuint})::nvmlReturn_t + @gcsafe_ccall libnvml.nvmlUnitGetCount(unitCount::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlUnitGetHandleByIndex(index, unit) initialize_context() - @gcsafe_ccall (libnvml()).nvmlUnitGetHandleByIndex(index::Cuint, + @gcsafe_ccall libnvml.nvmlUnitGetHandleByIndex(index::Cuint, unit::Ptr{nvmlUnit_t})::nvmlReturn_t end @checked function nvmlUnitGetUnitInfo(unit, info) initialize_context() - @gcsafe_ccall (libnvml()).nvmlUnitGetUnitInfo(unit::nvmlUnit_t, + @gcsafe_ccall libnvml.nvmlUnitGetUnitInfo(unit::nvmlUnit_t, info::Ptr{nvmlUnitInfo_t})::nvmlReturn_t end @checked function nvmlUnitGetLedState(unit, state) initialize_context() - @gcsafe_ccall (libnvml()).nvmlUnitGetLedState(unit::nvmlUnit_t, + @gcsafe_ccall libnvml.nvmlUnitGetLedState(unit::nvmlUnit_t, state::Ptr{nvmlLedState_t})::nvmlReturn_t end @checked function nvmlUnitGetPsuInfo(unit, psu) initialize_context() - @gcsafe_ccall (libnvml()).nvmlUnitGetPsuInfo(unit::nvmlUnit_t, + @gcsafe_ccall libnvml.nvmlUnitGetPsuInfo(unit::nvmlUnit_t, psu::Ptr{nvmlPSUInfo_t})::nvmlReturn_t end @checked function nvmlUnitGetTemperature(unit, type, temp) initialize_context() - @gcsafe_ccall (libnvml()).nvmlUnitGetTemperature(unit::nvmlUnit_t, type::Cuint, + @gcsafe_ccall libnvml.nvmlUnitGetTemperature(unit::nvmlUnit_t, type::Cuint, temp::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlUnitGetFanSpeedInfo(unit, fanSpeeds) initialize_context() - @gcsafe_ccall (libnvml()).nvmlUnitGetFanSpeedInfo(unit::nvmlUnit_t, + @gcsafe_ccall libnvml.nvmlUnitGetFanSpeedInfo(unit::nvmlUnit_t, fanSpeeds::Ptr{nvmlUnitFanSpeeds_t})::nvmlReturn_t end @checked function nvmlUnitGetDevices(unit, deviceCount, devices) initialize_context() - @gcsafe_ccall (libnvml()).nvmlUnitGetDevices(unit::nvmlUnit_t, deviceCount::Ptr{Cuint}, + @gcsafe_ccall libnvml.nvmlUnitGetDevices(unit::nvmlUnit_t, deviceCount::Ptr{Cuint}, devices::Ptr{nvmlDevice_t})::nvmlReturn_t end @checked function nvmlDeviceGetCount_v2(deviceCount) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetCount_v2(deviceCount::Ptr{Cuint})::nvmlReturn_t + @gcsafe_ccall libnvml.nvmlDeviceGetCount_v2(deviceCount::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlDeviceGetAttributes_v2(device, attributes) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetAttributes_v2(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetAttributes_v2(device::nvmlDevice_t, attributes::Ptr{nvmlDeviceAttributes_t})::nvmlReturn_t end @checked function nvmlDeviceGetHandleByIndex_v2(index, device) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetHandleByIndex_v2(index::Cuint, + @gcsafe_ccall libnvml.nvmlDeviceGetHandleByIndex_v2(index::Cuint, device::Ptr{nvmlDevice_t})::nvmlReturn_t end @checked function nvmlDeviceGetHandleBySerial(serial, device) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetHandleBySerial(serial::Cstring, + @gcsafe_ccall libnvml.nvmlDeviceGetHandleBySerial(serial::Cstring, device::Ptr{nvmlDevice_t})::nvmlReturn_t end @checked function nvmlDeviceGetHandleByUUID(uuid, device) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetHandleByUUID(uuid::Cstring, + @gcsafe_ccall libnvml.nvmlDeviceGetHandleByUUID(uuid::Cstring, device::Ptr{nvmlDevice_t})::nvmlReturn_t end @checked function nvmlDeviceGetHandleByUUIDV(uuid, device) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetHandleByUUIDV(uuid::Ptr{nvmlUUID_t}, + @gcsafe_ccall libnvml.nvmlDeviceGetHandleByUUIDV(uuid::Ptr{nvmlUUID_t}, device::Ptr{nvmlDevice_t})::nvmlReturn_t end @checked function nvmlDeviceGetHandleByPciBusId_v2(pciBusId, device) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetHandleByPciBusId_v2(pciBusId::Cstring, + @gcsafe_ccall libnvml.nvmlDeviceGetHandleByPciBusId_v2(pciBusId::Cstring, device::Ptr{nvmlDevice_t})::nvmlReturn_t end @checked function nvmlDeviceGetName(device, name, length) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetName(device::nvmlDevice_t, name::Cstring, + @gcsafe_ccall libnvml.nvmlDeviceGetName(device::nvmlDevice_t, name::Cstring, length::Cuint)::nvmlReturn_t end @checked function nvmlDeviceGetBrand(device, type) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetBrand(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetBrand(device::nvmlDevice_t, type::Ptr{nvmlBrandType_t})::nvmlReturn_t end @checked function nvmlDeviceGetIndex(device, index) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetIndex(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetIndex(device::nvmlDevice_t, index::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlDeviceGetSerial(device, serial, length) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetSerial(device::nvmlDevice_t, serial::Cstring, + @gcsafe_ccall libnvml.nvmlDeviceGetSerial(device::nvmlDevice_t, serial::Cstring, length::Cuint)::nvmlReturn_t end @checked function nvmlDeviceGetModuleId(device, moduleId) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetModuleId(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetModuleId(device::nvmlDevice_t, moduleId::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlDeviceGetC2cModeInfoV(device, c2cModeInfo) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetC2cModeInfoV(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetC2cModeInfoV(device::nvmlDevice_t, c2cModeInfo::Ptr{nvmlC2cModeInfo_v1_t})::nvmlReturn_t end @@ -2279,7 +2279,7 @@ const nvmlAffinityScope_t = Cuint @checked function nvmlDeviceGetMemoryAffinity(device, nodeSetSize, nodeSet, scope) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetMemoryAffinity(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetMemoryAffinity(device::nvmlDevice_t, nodeSetSize::Cuint, nodeSet::Ptr{Culong}, scope::nvmlAffinityScope_t)::nvmlReturn_t @@ -2287,7 +2287,7 @@ end @checked function nvmlDeviceGetCpuAffinityWithinScope(device, cpuSetSize, cpuSet, scope) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetCpuAffinityWithinScope(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetCpuAffinityWithinScope(device::nvmlDevice_t, cpuSetSize::Cuint, cpuSet::Ptr{Culong}, scope::nvmlAffinityScope_t)::nvmlReturn_t @@ -2295,49 +2295,49 @@ end @checked function nvmlDeviceGetCpuAffinity(device, cpuSetSize, cpuSet) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetCpuAffinity(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetCpuAffinity(device::nvmlDevice_t, cpuSetSize::Cuint, cpuSet::Ptr{Culong})::nvmlReturn_t end @checked function nvmlDeviceSetCpuAffinity(device) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceSetCpuAffinity(device::nvmlDevice_t)::nvmlReturn_t + @gcsafe_ccall libnvml.nvmlDeviceSetCpuAffinity(device::nvmlDevice_t)::nvmlReturn_t end @checked function nvmlDeviceClearCpuAffinity(device) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceClearCpuAffinity(device::nvmlDevice_t)::nvmlReturn_t + @gcsafe_ccall libnvml.nvmlDeviceClearCpuAffinity(device::nvmlDevice_t)::nvmlReturn_t end @checked function nvmlDeviceGetNumaNodeId(device, node) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetNumaNodeId(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetNumaNodeId(device::nvmlDevice_t, node::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlDeviceGetAddressingMode(device, mode) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetAddressingMode(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetAddressingMode(device::nvmlDevice_t, mode::Ptr{nvmlDeviceAddressingMode_t})::nvmlReturn_t end @checked function nvmlDeviceGetRepairStatus(device, repairStatus) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetRepairStatus(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetRepairStatus(device::nvmlDevice_t, repairStatus::Ptr{nvmlRepairStatus_t})::nvmlReturn_t end @checked function nvmlDeviceGetTopologyCommonAncestor(device1, device2, pathInfo) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetTopologyCommonAncestor(device1::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetTopologyCommonAncestor(device1::nvmlDevice_t, device2::nvmlDevice_t, pathInfo::Ptr{nvmlGpuTopologyLevel_t})::nvmlReturn_t end @checked function nvmlDeviceGetTopologyNearestGpus(device, level, count, deviceArray) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetTopologyNearestGpus(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetTopologyNearestGpus(device::nvmlDevice_t, level::nvmlGpuTopologyLevel_t, count::Ptr{Cuint}, deviceArray::Ptr{nvmlDevice_t})::nvmlReturn_t @@ -2345,7 +2345,7 @@ end @checked function nvmlDeviceGetP2PStatus(device1, device2, p2pIndex, p2pStatus) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetP2PStatus(device1::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetP2PStatus(device1::nvmlDevice_t, device2::nvmlDevice_t, p2pIndex::nvmlGpuP2PCapsIndex_t, p2pStatus::Ptr{nvmlGpuP2PStatus_t})::nvmlReturn_t @@ -2353,26 +2353,26 @@ end @checked function nvmlDeviceGetUUID(device, uuid, length) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetUUID(device::nvmlDevice_t, uuid::Cstring, + @gcsafe_ccall libnvml.nvmlDeviceGetUUID(device::nvmlDevice_t, uuid::Cstring, length::Cuint)::nvmlReturn_t end @checked function nvmlDeviceGetMinorNumber(device, minorNumber) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetMinorNumber(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetMinorNumber(device::nvmlDevice_t, minorNumber::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlDeviceGetBoardPartNumber(device, partNumber, length) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetBoardPartNumber(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetBoardPartNumber(device::nvmlDevice_t, partNumber::Cstring, length::Cuint)::nvmlReturn_t end @checked function nvmlDeviceGetInforomVersion(device, object, version, length) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetInforomVersion(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetInforomVersion(device::nvmlDevice_t, object::nvmlInforomObject_t, version::Cstring, length::Cuint)::nvmlReturn_t @@ -2380,139 +2380,139 @@ end @checked function nvmlDeviceGetInforomImageVersion(device, version, length) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetInforomImageVersion(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetInforomImageVersion(device::nvmlDevice_t, version::Cstring, length::Cuint)::nvmlReturn_t end @checked function nvmlDeviceGetInforomConfigurationChecksum(device, checksum) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetInforomConfigurationChecksum(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetInforomConfigurationChecksum(device::nvmlDevice_t, checksum::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlDeviceValidateInforom(device) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceValidateInforom(device::nvmlDevice_t)::nvmlReturn_t + @gcsafe_ccall libnvml.nvmlDeviceValidateInforom(device::nvmlDevice_t)::nvmlReturn_t end @checked function nvmlDeviceGetLastBBXFlushTime(device, timestamp, durationUs) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetLastBBXFlushTime(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetLastBBXFlushTime(device::nvmlDevice_t, timestamp::Ptr{Culonglong}, durationUs::Ptr{Culong})::nvmlReturn_t end @checked function nvmlDeviceGetDisplayMode(device, display) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetDisplayMode(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetDisplayMode(device::nvmlDevice_t, display::Ptr{nvmlEnableState_t})::nvmlReturn_t end @checked function nvmlDeviceGetDisplayActive(device, isActive) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetDisplayActive(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetDisplayActive(device::nvmlDevice_t, isActive::Ptr{nvmlEnableState_t})::nvmlReturn_t end @checked function nvmlDeviceGetPersistenceMode(device, mode) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetPersistenceMode(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetPersistenceMode(device::nvmlDevice_t, mode::Ptr{nvmlEnableState_t})::nvmlReturn_t end @checked function nvmlDeviceGetPciInfoExt(device, pci) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetPciInfoExt(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetPciInfoExt(device::nvmlDevice_t, pci::Ptr{nvmlPciInfoExt_t})::nvmlReturn_t end @checked function nvmlDeviceGetPciInfo_v3(device, pci) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetPciInfo_v3(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetPciInfo_v3(device::nvmlDevice_t, pci::Ptr{nvmlPciInfo_t})::nvmlReturn_t end @checked function nvmlDeviceGetMaxPcieLinkGeneration(device, maxLinkGen) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetMaxPcieLinkGeneration(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetMaxPcieLinkGeneration(device::nvmlDevice_t, maxLinkGen::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlDeviceGetGpuMaxPcieLinkGeneration(device, maxLinkGenDevice) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetGpuMaxPcieLinkGeneration(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetGpuMaxPcieLinkGeneration(device::nvmlDevice_t, maxLinkGenDevice::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlDeviceGetMaxPcieLinkWidth(device, maxLinkWidth) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetMaxPcieLinkWidth(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetMaxPcieLinkWidth(device::nvmlDevice_t, maxLinkWidth::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlDeviceGetCurrPcieLinkGeneration(device, currLinkGen) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetCurrPcieLinkGeneration(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetCurrPcieLinkGeneration(device::nvmlDevice_t, currLinkGen::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlDeviceGetCurrPcieLinkWidth(device, currLinkWidth) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetCurrPcieLinkWidth(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetCurrPcieLinkWidth(device::nvmlDevice_t, currLinkWidth::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlDeviceGetPcieThroughput(device, counter, value) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetPcieThroughput(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetPcieThroughput(device::nvmlDevice_t, counter::nvmlPcieUtilCounter_t, value::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlDeviceGetPcieReplayCounter(device, value) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetPcieReplayCounter(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetPcieReplayCounter(device::nvmlDevice_t, value::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlDeviceGetClockInfo(device, type, clock) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetClockInfo(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetClockInfo(device::nvmlDevice_t, type::nvmlClockType_t, clock::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlDeviceGetMaxClockInfo(device, type, clock) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetMaxClockInfo(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetMaxClockInfo(device::nvmlDevice_t, type::nvmlClockType_t, clock::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlDeviceGetGpcClkVfOffset(device, offset) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetGpcClkVfOffset(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetGpcClkVfOffset(device::nvmlDevice_t, offset::Ptr{Cint})::nvmlReturn_t end @checked function nvmlDeviceGetApplicationsClock(device, clockType, clockMHz) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetApplicationsClock(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetApplicationsClock(device::nvmlDevice_t, clockType::nvmlClockType_t, clockMHz::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlDeviceGetDefaultApplicationsClock(device, clockType, clockMHz) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetDefaultApplicationsClock(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetDefaultApplicationsClock(device::nvmlDevice_t, clockType::nvmlClockType_t, clockMHz::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlDeviceGetClock(device, clockType, clockId, clockMHz) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetClock(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetClock(device::nvmlDevice_t, clockType::nvmlClockType_t, clockId::nvmlClockId_t, clockMHz::Ptr{Cuint})::nvmlReturn_t @@ -2520,14 +2520,14 @@ end @checked function nvmlDeviceGetMaxCustomerBoostClock(device, clockType, clockMHz) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetMaxCustomerBoostClock(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetMaxCustomerBoostClock(device::nvmlDevice_t, clockType::nvmlClockType_t, clockMHz::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlDeviceGetSupportedMemoryClocks(device, count, clocksMHz) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetSupportedMemoryClocks(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetSupportedMemoryClocks(device::nvmlDevice_t, count::Ptr{Cuint}, clocksMHz::Ptr{Cuint})::nvmlReturn_t end @@ -2535,7 +2535,7 @@ end @checked function nvmlDeviceGetSupportedGraphicsClocks(device, memoryClockMHz, count, clocksMHz) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetSupportedGraphicsClocks(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetSupportedGraphicsClocks(device::nvmlDevice_t, memoryClockMHz::Cuint, count::Ptr{Cuint}, clocksMHz::Ptr{Cuint})::nvmlReturn_t @@ -2543,65 +2543,65 @@ end @checked function nvmlDeviceGetAutoBoostedClocksEnabled(device, isEnabled, defaultIsEnabled) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetAutoBoostedClocksEnabled(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetAutoBoostedClocksEnabled(device::nvmlDevice_t, isEnabled::Ptr{nvmlEnableState_t}, defaultIsEnabled::Ptr{nvmlEnableState_t})::nvmlReturn_t end @checked function nvmlDeviceGetFanSpeed(device, speed) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetFanSpeed(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetFanSpeed(device::nvmlDevice_t, speed::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlDeviceGetFanSpeed_v2(device, fan, speed) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetFanSpeed_v2(device::nvmlDevice_t, fan::Cuint, + @gcsafe_ccall libnvml.nvmlDeviceGetFanSpeed_v2(device::nvmlDevice_t, fan::Cuint, speed::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlDeviceGetFanSpeedRPM(device, fanSpeed) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetFanSpeedRPM(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetFanSpeedRPM(device::nvmlDevice_t, fanSpeed::Ptr{nvmlFanSpeedInfo_t})::nvmlReturn_t end @checked function nvmlDeviceGetTargetFanSpeed(device, fan, targetSpeed) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetTargetFanSpeed(device::nvmlDevice_t, fan::Cuint, + @gcsafe_ccall libnvml.nvmlDeviceGetTargetFanSpeed(device::nvmlDevice_t, fan::Cuint, targetSpeed::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlDeviceGetMinMaxFanSpeed(device, minSpeed, maxSpeed) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetMinMaxFanSpeed(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetMinMaxFanSpeed(device::nvmlDevice_t, minSpeed::Ptr{Cuint}, maxSpeed::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlDeviceGetFanControlPolicy_v2(device, fan, policy) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetFanControlPolicy_v2(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetFanControlPolicy_v2(device::nvmlDevice_t, fan::Cuint, policy::Ptr{nvmlFanControlPolicy_t})::nvmlReturn_t end @checked function nvmlDeviceGetNumFans(device, numFans) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetNumFans(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetNumFans(device::nvmlDevice_t, numFans::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlDeviceGetTemperature(device, sensorType, temp) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetTemperature(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetTemperature(device::nvmlDevice_t, sensorType::nvmlTemperatureSensors_t, temp::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlDeviceGetCoolerInfo(device, coolerInfo) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetCoolerInfo(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetCoolerInfo(device::nvmlDevice_t, coolerInfo::Ptr{nvmlCoolerInfo_t})::nvmlReturn_t end @@ -2615,84 +2615,84 @@ const nvmlTemperature_t = nvmlTemperature_v1_t @checked function nvmlDeviceGetTemperatureV(device, temperature) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetTemperatureV(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetTemperatureV(device::nvmlDevice_t, temperature::Ptr{nvmlTemperature_t})::nvmlReturn_t end @checked function nvmlDeviceGetTemperatureThreshold(device, thresholdType, temp) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetTemperatureThreshold(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetTemperatureThreshold(device::nvmlDevice_t, thresholdType::nvmlTemperatureThresholds_t, temp::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlDeviceGetMarginTemperature(device, marginTempInfo) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetMarginTemperature(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetMarginTemperature(device::nvmlDevice_t, marginTempInfo::Ptr{nvmlMarginTemperature_t})::nvmlReturn_t end @checked function nvmlDeviceGetThermalSettings(device, sensorIndex, pThermalSettings) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetThermalSettings(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetThermalSettings(device::nvmlDevice_t, sensorIndex::Cuint, pThermalSettings::Ptr{nvmlGpuThermalSettings_t})::nvmlReturn_t end @checked function nvmlDeviceGetPerformanceState(device, pState) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetPerformanceState(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetPerformanceState(device::nvmlDevice_t, pState::Ptr{nvmlPstates_t})::nvmlReturn_t end @checked function nvmlDeviceGetCurrentClocksEventReasons(device, clocksEventReasons) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetCurrentClocksEventReasons(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetCurrentClocksEventReasons(device::nvmlDevice_t, clocksEventReasons::Ptr{Culonglong})::nvmlReturn_t end @checked function nvmlDeviceGetCurrentClocksThrottleReasons(device, clocksThrottleReasons) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetCurrentClocksThrottleReasons(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetCurrentClocksThrottleReasons(device::nvmlDevice_t, clocksThrottleReasons::Ptr{Culonglong})::nvmlReturn_t end @checked function nvmlDeviceGetSupportedClocksEventReasons(device, supportedClocksEventReasons) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetSupportedClocksEventReasons(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetSupportedClocksEventReasons(device::nvmlDevice_t, supportedClocksEventReasons::Ptr{Culonglong})::nvmlReturn_t end @checked function nvmlDeviceGetSupportedClocksThrottleReasons(device, supportedClocksThrottleReasons) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetSupportedClocksThrottleReasons(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetSupportedClocksThrottleReasons(device::nvmlDevice_t, supportedClocksThrottleReasons::Ptr{Culonglong})::nvmlReturn_t end @checked function nvmlDeviceGetPowerState(device, pState) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetPowerState(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetPowerState(device::nvmlDevice_t, pState::Ptr{nvmlPstates_t})::nvmlReturn_t end @checked function nvmlDeviceGetDynamicPstatesInfo(device, pDynamicPstatesInfo) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetDynamicPstatesInfo(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetDynamicPstatesInfo(device::nvmlDevice_t, pDynamicPstatesInfo::Ptr{nvmlGpuDynamicPstatesInfo_t})::nvmlReturn_t end @checked function nvmlDeviceGetMemClkVfOffset(device, offset) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetMemClkVfOffset(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetMemClkVfOffset(device::nvmlDevice_t, offset::Ptr{Cint})::nvmlReturn_t end @checked function nvmlDeviceGetMinMaxClockOfPState(device, type, pstate, minClockMHz, maxClockMHz) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetMinMaxClockOfPState(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetMinMaxClockOfPState(device::nvmlDevice_t, type::nvmlClockType_t, pstate::nvmlPstates_t, minClockMHz::Ptr{Cuint}, @@ -2701,177 +2701,177 @@ end @checked function nvmlDeviceGetSupportedPerformanceStates(device, pstates, size) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetSupportedPerformanceStates(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetSupportedPerformanceStates(device::nvmlDevice_t, pstates::Ptr{nvmlPstates_t}, size::Cuint)::nvmlReturn_t end @checked function nvmlDeviceGetGpcClkMinMaxVfOffset(device, minOffset, maxOffset) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetGpcClkMinMaxVfOffset(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetGpcClkMinMaxVfOffset(device::nvmlDevice_t, minOffset::Ptr{Cint}, maxOffset::Ptr{Cint})::nvmlReturn_t end @checked function nvmlDeviceGetMemClkMinMaxVfOffset(device, minOffset, maxOffset) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetMemClkMinMaxVfOffset(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetMemClkMinMaxVfOffset(device::nvmlDevice_t, minOffset::Ptr{Cint}, maxOffset::Ptr{Cint})::nvmlReturn_t end @checked function nvmlDeviceGetClockOffsets(device, info) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetClockOffsets(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetClockOffsets(device::nvmlDevice_t, info::Ptr{nvmlClockOffset_t})::nvmlReturn_t end @checked function nvmlDeviceSetClockOffsets(device, info) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceSetClockOffsets(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceSetClockOffsets(device::nvmlDevice_t, info::Ptr{nvmlClockOffset_t})::nvmlReturn_t end @checked function nvmlDeviceGetPerformanceModes(device, perfModes) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetPerformanceModes(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetPerformanceModes(device::nvmlDevice_t, perfModes::Ptr{nvmlDevicePerfModes_t})::nvmlReturn_t end @checked function nvmlDeviceGetCurrentClockFreqs(device, currentClockFreqs) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetCurrentClockFreqs(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetCurrentClockFreqs(device::nvmlDevice_t, currentClockFreqs::Ptr{nvmlDeviceCurrentClockFreqs_t})::nvmlReturn_t end @checked function nvmlDeviceGetPowerManagementMode(device, mode) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetPowerManagementMode(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetPowerManagementMode(device::nvmlDevice_t, mode::Ptr{nvmlEnableState_t})::nvmlReturn_t end @checked function nvmlDeviceGetPowerManagementLimit(device, limit) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetPowerManagementLimit(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetPowerManagementLimit(device::nvmlDevice_t, limit::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlDeviceGetPowerManagementLimitConstraints(device, minLimit, maxLimit) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetPowerManagementLimitConstraints(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetPowerManagementLimitConstraints(device::nvmlDevice_t, minLimit::Ptr{Cuint}, maxLimit::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlDeviceGetPowerManagementDefaultLimit(device, defaultLimit) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetPowerManagementDefaultLimit(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetPowerManagementDefaultLimit(device::nvmlDevice_t, defaultLimit::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlDeviceGetPowerUsage(device, power) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetPowerUsage(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetPowerUsage(device::nvmlDevice_t, power::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlDeviceGetPowerMizerMode_v1(device, powerMizerMode) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetPowerMizerMode_v1(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetPowerMizerMode_v1(device::nvmlDevice_t, powerMizerMode::Ptr{nvmlDevicePowerMizerModes_v1_t})::nvmlReturn_t end @checked function nvmlDeviceSetPowerMizerMode_v1(device, powerMizerMode) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceSetPowerMizerMode_v1(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceSetPowerMizerMode_v1(device::nvmlDevice_t, powerMizerMode::Ptr{nvmlDevicePowerMizerModes_v1_t})::nvmlReturn_t end @checked function nvmlDeviceGetTotalEnergyConsumption(device, energy) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetTotalEnergyConsumption(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetTotalEnergyConsumption(device::nvmlDevice_t, energy::Ptr{Culonglong})::nvmlReturn_t end @checked function nvmlDeviceGetEnforcedPowerLimit(device, limit) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetEnforcedPowerLimit(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetEnforcedPowerLimit(device::nvmlDevice_t, limit::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlDeviceGetGpuOperationMode(device, current, pending) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetGpuOperationMode(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetGpuOperationMode(device::nvmlDevice_t, current::Ptr{nvmlGpuOperationMode_t}, pending::Ptr{nvmlGpuOperationMode_t})::nvmlReturn_t end @checked function nvmlDeviceGetMemoryInfo(device, memory) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetMemoryInfo(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetMemoryInfo(device::nvmlDevice_t, memory::Ptr{nvmlMemory_t})::nvmlReturn_t end @checked function nvmlDeviceGetMemoryInfo_v2(device, memory) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetMemoryInfo_v2(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetMemoryInfo_v2(device::nvmlDevice_t, memory::Ptr{nvmlMemory_v2_t})::nvmlReturn_t end @checked function nvmlDeviceGetComputeMode(device, mode) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetComputeMode(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetComputeMode(device::nvmlDevice_t, mode::Ptr{nvmlComputeMode_t})::nvmlReturn_t end @checked function nvmlDeviceGetCudaComputeCapability(device, major, minor) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetCudaComputeCapability(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetCudaComputeCapability(device::nvmlDevice_t, major::Ptr{Cint}, minor::Ptr{Cint})::nvmlReturn_t end @checked function nvmlDeviceGetDramEncryptionMode(device, current, pending) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetDramEncryptionMode(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetDramEncryptionMode(device::nvmlDevice_t, current::Ptr{nvmlDramEncryptionInfo_t}, pending::Ptr{nvmlDramEncryptionInfo_t})::nvmlReturn_t end @checked function nvmlDeviceSetDramEncryptionMode(device, dramEncryption) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceSetDramEncryptionMode(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceSetDramEncryptionMode(device::nvmlDevice_t, dramEncryption::Ptr{nvmlDramEncryptionInfo_t})::nvmlReturn_t end @checked function nvmlDeviceGetEccMode(device, current, pending) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetEccMode(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetEccMode(device::nvmlDevice_t, current::Ptr{nvmlEnableState_t}, pending::Ptr{nvmlEnableState_t})::nvmlReturn_t end @checked function nvmlDeviceGetDefaultEccMode(device, defaultMode) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetDefaultEccMode(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetDefaultEccMode(device::nvmlDevice_t, defaultMode::Ptr{nvmlEnableState_t})::nvmlReturn_t end @checked function nvmlDeviceGetBoardId(device, boardId) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetBoardId(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetBoardId(device::nvmlDevice_t, boardId::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlDeviceGetMultiGpuBoard(device, multiGpuBool) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetMultiGpuBoard(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetMultiGpuBoard(device::nvmlDevice_t, multiGpuBool::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlDeviceGetTotalEccErrors(device, errorType, counterType, eccCounts) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetTotalEccErrors(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetTotalEccErrors(device::nvmlDevice_t, errorType::nvmlMemoryErrorType_t, counterType::nvmlEccCounterType_t, eccCounts::Ptr{Culonglong})::nvmlReturn_t @@ -2879,7 +2879,7 @@ end @checked function nvmlDeviceGetDetailedEccErrors(device, errorType, counterType, eccCounts) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetDetailedEccErrors(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetDetailedEccErrors(device::nvmlDevice_t, errorType::nvmlMemoryErrorType_t, counterType::nvmlEccCounterType_t, eccCounts::Ptr{nvmlEccErrorCounts_t})::nvmlReturn_t @@ -2888,7 +2888,7 @@ end @checked function nvmlDeviceGetMemoryErrorCounter(device, errorType, counterType, locationType, count) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetMemoryErrorCounter(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetMemoryErrorCounter(device::nvmlDevice_t, errorType::nvmlMemoryErrorType_t, counterType::nvmlEccCounterType_t, locationType::nvmlMemoryLocation_t, @@ -2897,20 +2897,20 @@ end @checked function nvmlDeviceGetUtilizationRates(device, utilization) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetUtilizationRates(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetUtilizationRates(device::nvmlDevice_t, utilization::Ptr{nvmlUtilization_t})::nvmlReturn_t end @checked function nvmlDeviceGetEncoderUtilization(device, utilization, samplingPeriodUs) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetEncoderUtilization(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetEncoderUtilization(device::nvmlDevice_t, utilization::Ptr{Cuint}, samplingPeriodUs::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlDeviceGetEncoderCapacity(device, encoderQueryType, encoderCapacity) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetEncoderCapacity(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetEncoderCapacity(device::nvmlDevice_t, encoderQueryType::nvmlEncoderType_t, encoderCapacity::Ptr{Cuint})::nvmlReturn_t end @@ -2918,7 +2918,7 @@ end @checked function nvmlDeviceGetEncoderStats(device, sessionCount, averageFps, averageLatency) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetEncoderStats(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetEncoderStats(device::nvmlDevice_t, sessionCount::Ptr{Cuint}, averageFps::Ptr{Cuint}, averageLatency::Ptr{Cuint})::nvmlReturn_t @@ -2926,102 +2926,102 @@ end @checked function nvmlDeviceGetEncoderSessions(device, sessionCount, sessionInfos) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetEncoderSessions(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetEncoderSessions(device::nvmlDevice_t, sessionCount::Ptr{Cuint}, sessionInfos::Ptr{nvmlEncoderSessionInfo_t})::nvmlReturn_t end @checked function nvmlDeviceGetDecoderUtilization(device, utilization, samplingPeriodUs) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetDecoderUtilization(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetDecoderUtilization(device::nvmlDevice_t, utilization::Ptr{Cuint}, samplingPeriodUs::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlDeviceGetJpgUtilization(device, utilization, samplingPeriodUs) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetJpgUtilization(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetJpgUtilization(device::nvmlDevice_t, utilization::Ptr{Cuint}, samplingPeriodUs::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlDeviceGetOfaUtilization(device, utilization, samplingPeriodUs) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetOfaUtilization(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetOfaUtilization(device::nvmlDevice_t, utilization::Ptr{Cuint}, samplingPeriodUs::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlDeviceGetFBCStats(device, fbcStats) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetFBCStats(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetFBCStats(device::nvmlDevice_t, fbcStats::Ptr{nvmlFBCStats_t})::nvmlReturn_t end @checked function nvmlDeviceGetFBCSessions(device, sessionCount, sessionInfo) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetFBCSessions(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetFBCSessions(device::nvmlDevice_t, sessionCount::Ptr{Cuint}, sessionInfo::Ptr{nvmlFBCSessionInfo_t})::nvmlReturn_t end @checked function nvmlDeviceGetDriverModel_v2(device, current, pending) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetDriverModel_v2(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetDriverModel_v2(device::nvmlDevice_t, current::Ptr{nvmlDriverModel_t}, pending::Ptr{nvmlDriverModel_t})::nvmlReturn_t end @checked function nvmlDeviceGetVbiosVersion(device, version, length) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetVbiosVersion(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetVbiosVersion(device::nvmlDevice_t, version::Cstring, length::Cuint)::nvmlReturn_t end @checked function nvmlDeviceGetBridgeChipInfo(device, bridgeHierarchy) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetBridgeChipInfo(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetBridgeChipInfo(device::nvmlDevice_t, bridgeHierarchy::Ptr{nvmlBridgeChipHierarchy_t})::nvmlReturn_t end @checked function nvmlDeviceGetComputeRunningProcesses_v3(device, infoCount, infos) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetComputeRunningProcesses_v3(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetComputeRunningProcesses_v3(device::nvmlDevice_t, infoCount::Ptr{Cuint}, infos::Ptr{nvmlProcessInfo_t})::nvmlReturn_t end @checked function nvmlDeviceGetGraphicsRunningProcesses_v3(device, infoCount, infos) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetGraphicsRunningProcesses_v3(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetGraphicsRunningProcesses_v3(device::nvmlDevice_t, infoCount::Ptr{Cuint}, infos::Ptr{nvmlProcessInfo_t})::nvmlReturn_t end @checked function nvmlDeviceGetMPSComputeRunningProcesses_v3(device, infoCount, infos) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetMPSComputeRunningProcesses_v3(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetMPSComputeRunningProcesses_v3(device::nvmlDevice_t, infoCount::Ptr{Cuint}, infos::Ptr{nvmlProcessInfo_t})::nvmlReturn_t end @checked function nvmlDeviceGetRunningProcessDetailList(device, plist) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetRunningProcessDetailList(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetRunningProcessDetailList(device::nvmlDevice_t, plist::Ptr{nvmlProcessDetailList_t})::nvmlReturn_t end @checked function nvmlDeviceOnSameBoard(device1, device2, onSameBoard) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceOnSameBoard(device1::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceOnSameBoard(device1::nvmlDevice_t, device2::nvmlDevice_t, onSameBoard::Ptr{Cint})::nvmlReturn_t end @checked function nvmlDeviceGetAPIRestriction(device, apiType, isRestricted) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetAPIRestriction(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetAPIRestriction(device::nvmlDevice_t, apiType::nvmlRestrictedAPI_t, isRestricted::Ptr{nvmlEnableState_t})::nvmlReturn_t end @@ -3029,7 +3029,7 @@ end @checked function nvmlDeviceGetSamples(device, type, lastSeenTimeStamp, sampleValType, sampleCount, samples) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetSamples(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetSamples(device::nvmlDevice_t, type::nvmlSamplingType_t, lastSeenTimeStamp::Culonglong, sampleValType::Ptr{nvmlValueType_t}, @@ -3039,195 +3039,195 @@ end @checked function nvmlDeviceGetBAR1MemoryInfo(device, bar1Memory) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetBAR1MemoryInfo(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetBAR1MemoryInfo(device::nvmlDevice_t, bar1Memory::Ptr{nvmlBAR1Memory_t})::nvmlReturn_t end @checked function nvmlDeviceGetViolationStatus(device, perfPolicyType, violTime) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetViolationStatus(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetViolationStatus(device::nvmlDevice_t, perfPolicyType::nvmlPerfPolicyType_t, violTime::Ptr{nvmlViolationTime_t})::nvmlReturn_t end @checked function nvmlDeviceGetIrqNum(device, irqNum) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetIrqNum(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetIrqNum(device::nvmlDevice_t, irqNum::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlDeviceGetNumGpuCores(device, numCores) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetNumGpuCores(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetNumGpuCores(device::nvmlDevice_t, numCores::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlDeviceGetPowerSource(device, powerSource) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetPowerSource(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetPowerSource(device::nvmlDevice_t, powerSource::Ptr{nvmlPowerSource_t})::nvmlReturn_t end @checked function nvmlDeviceGetMemoryBusWidth(device, busWidth) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetMemoryBusWidth(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetMemoryBusWidth(device::nvmlDevice_t, busWidth::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlDeviceGetPcieLinkMaxSpeed(device, maxSpeed) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetPcieLinkMaxSpeed(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetPcieLinkMaxSpeed(device::nvmlDevice_t, maxSpeed::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlDeviceGetPcieSpeed(device, pcieSpeed) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetPcieSpeed(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetPcieSpeed(device::nvmlDevice_t, pcieSpeed::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlDeviceGetAdaptiveClockInfoStatus(device, adaptiveClockStatus) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetAdaptiveClockInfoStatus(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetAdaptiveClockInfoStatus(device::nvmlDevice_t, adaptiveClockStatus::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlDeviceGetBusType(device, type) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetBusType(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetBusType(device::nvmlDevice_t, type::Ptr{nvmlBusType_t})::nvmlReturn_t end @checked function nvmlDeviceGetGpuFabricInfo(device, gpuFabricInfo) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetGpuFabricInfo(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetGpuFabricInfo(device::nvmlDevice_t, gpuFabricInfo::Ptr{nvmlGpuFabricInfo_t})::nvmlReturn_t end @checked function nvmlDeviceGetGpuFabricInfoV(device, gpuFabricInfo) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetGpuFabricInfoV(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetGpuFabricInfoV(device::nvmlDevice_t, gpuFabricInfo::Ptr{nvmlGpuFabricInfoV_t})::nvmlReturn_t end @checked function nvmlSystemGetConfComputeCapabilities(capabilities) initialize_context() - @gcsafe_ccall (libnvml()).nvmlSystemGetConfComputeCapabilities(capabilities::Ptr{nvmlConfComputeSystemCaps_t})::nvmlReturn_t + @gcsafe_ccall libnvml.nvmlSystemGetConfComputeCapabilities(capabilities::Ptr{nvmlConfComputeSystemCaps_t})::nvmlReturn_t end @checked function nvmlSystemGetConfComputeState(state) initialize_context() - @gcsafe_ccall (libnvml()).nvmlSystemGetConfComputeState(state::Ptr{nvmlConfComputeSystemState_t})::nvmlReturn_t + @gcsafe_ccall libnvml.nvmlSystemGetConfComputeState(state::Ptr{nvmlConfComputeSystemState_t})::nvmlReturn_t end @checked function nvmlDeviceGetConfComputeMemSizeInfo(device, memInfo) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetConfComputeMemSizeInfo(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetConfComputeMemSizeInfo(device::nvmlDevice_t, memInfo::Ptr{nvmlConfComputeMemSizeInfo_t})::nvmlReturn_t end @checked function nvmlSystemGetConfComputeGpusReadyState(isAcceptingWork) initialize_context() - @gcsafe_ccall (libnvml()).nvmlSystemGetConfComputeGpusReadyState(isAcceptingWork::Ptr{Cuint})::nvmlReturn_t + @gcsafe_ccall libnvml.nvmlSystemGetConfComputeGpusReadyState(isAcceptingWork::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlDeviceGetConfComputeProtectedMemoryUsage(device, memory) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetConfComputeProtectedMemoryUsage(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetConfComputeProtectedMemoryUsage(device::nvmlDevice_t, memory::Ptr{nvmlMemory_t})::nvmlReturn_t end @checked function nvmlDeviceGetConfComputeGpuCertificate(device, gpuCert) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetConfComputeGpuCertificate(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetConfComputeGpuCertificate(device::nvmlDevice_t, gpuCert::Ptr{nvmlConfComputeGpuCertificate_t})::nvmlReturn_t end @checked function nvmlDeviceGetConfComputeGpuAttestationReport(device, gpuAtstReport) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetConfComputeGpuAttestationReport(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetConfComputeGpuAttestationReport(device::nvmlDevice_t, gpuAtstReport::Ptr{nvmlConfComputeGpuAttestationReport_t})::nvmlReturn_t end @checked function nvmlSystemGetConfComputeKeyRotationThresholdInfo(pKeyRotationThrInfo) initialize_context() - @gcsafe_ccall (libnvml()).nvmlSystemGetConfComputeKeyRotationThresholdInfo(pKeyRotationThrInfo::Ptr{nvmlConfComputeGetKeyRotationThresholdInfo_t})::nvmlReturn_t + @gcsafe_ccall libnvml.nvmlSystemGetConfComputeKeyRotationThresholdInfo(pKeyRotationThrInfo::Ptr{nvmlConfComputeGetKeyRotationThresholdInfo_t})::nvmlReturn_t end @checked function nvmlDeviceSetConfComputeUnprotectedMemSize(device, sizeKiB) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceSetConfComputeUnprotectedMemSize(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceSetConfComputeUnprotectedMemSize(device::nvmlDevice_t, sizeKiB::Culonglong)::nvmlReturn_t end @checked function nvmlSystemSetConfComputeGpusReadyState(isAcceptingWork) initialize_context() - @gcsafe_ccall (libnvml()).nvmlSystemSetConfComputeGpusReadyState(isAcceptingWork::Cuint)::nvmlReturn_t + @gcsafe_ccall libnvml.nvmlSystemSetConfComputeGpusReadyState(isAcceptingWork::Cuint)::nvmlReturn_t end @checked function nvmlSystemSetConfComputeKeyRotationThresholdInfo(pKeyRotationThrInfo) initialize_context() - @gcsafe_ccall (libnvml()).nvmlSystemSetConfComputeKeyRotationThresholdInfo(pKeyRotationThrInfo::Ptr{nvmlConfComputeSetKeyRotationThresholdInfo_t})::nvmlReturn_t + @gcsafe_ccall libnvml.nvmlSystemSetConfComputeKeyRotationThresholdInfo(pKeyRotationThrInfo::Ptr{nvmlConfComputeSetKeyRotationThresholdInfo_t})::nvmlReturn_t end @checked function nvmlSystemGetConfComputeSettings(settings) initialize_context() - @gcsafe_ccall (libnvml()).nvmlSystemGetConfComputeSettings(settings::Ptr{nvmlSystemConfComputeSettings_t})::nvmlReturn_t + @gcsafe_ccall libnvml.nvmlSystemGetConfComputeSettings(settings::Ptr{nvmlSystemConfComputeSettings_t})::nvmlReturn_t end @checked function nvmlDeviceGetGspFirmwareVersion(device, version) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetGspFirmwareVersion(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetGspFirmwareVersion(device::nvmlDevice_t, version::Cstring)::nvmlReturn_t end @checked function nvmlDeviceGetGspFirmwareMode(device, isEnabled, defaultMode) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetGspFirmwareMode(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetGspFirmwareMode(device::nvmlDevice_t, isEnabled::Ptr{Cuint}, defaultMode::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlDeviceGetSramEccErrorStatus(device, status) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetSramEccErrorStatus(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetSramEccErrorStatus(device::nvmlDevice_t, status::Ptr{nvmlEccSramErrorStatus_t})::nvmlReturn_t end @checked function nvmlDeviceSetPowerManagementLimit_v2(device, powerValue) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceSetPowerManagementLimit_v2(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceSetPowerManagementLimit_v2(device::nvmlDevice_t, powerValue::Ptr{nvmlPowerValue_v2_t})::nvmlReturn_t end @checked function nvmlDeviceGetAccountingMode(device, mode) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetAccountingMode(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetAccountingMode(device::nvmlDevice_t, mode::Ptr{nvmlEnableState_t})::nvmlReturn_t end @checked function nvmlDeviceGetAccountingStats(device, pid, stats) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetAccountingStats(device::nvmlDevice_t, pid::Cuint, + @gcsafe_ccall libnvml.nvmlDeviceGetAccountingStats(device::nvmlDevice_t, pid::Cuint, stats::Ptr{nvmlAccountingStats_t})::nvmlReturn_t end @checked function nvmlDeviceGetAccountingPids(device, count, pids) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetAccountingPids(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetAccountingPids(device::nvmlDevice_t, count::Ptr{Cuint}, pids::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlDeviceGetAccountingBufferSize(device, bufferSize) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetAccountingBufferSize(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetAccountingBufferSize(device::nvmlDevice_t, bufferSize::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlDeviceGetRetiredPages(device, cause, pageCount, addresses) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetRetiredPages(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetRetiredPages(device::nvmlDevice_t, cause::nvmlPageRetirementCause_t, pageCount::Ptr{Cuint}, addresses::Ptr{Culonglong})::nvmlReturn_t @@ -3236,7 +3236,7 @@ end @checked function nvmlDeviceGetRetiredPages_v2(device, cause, pageCount, addresses, timestamps) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetRetiredPages_v2(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetRetiredPages_v2(device::nvmlDevice_t, cause::nvmlPageRetirementCause_t, pageCount::Ptr{Cuint}, addresses::Ptr{Culonglong}, @@ -3245,14 +3245,14 @@ end @checked function nvmlDeviceGetRetiredPagesPendingStatus(device, isPending) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetRetiredPagesPendingStatus(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetRetiredPagesPendingStatus(device::nvmlDevice_t, isPending::Ptr{nvmlEnableState_t})::nvmlReturn_t end @checked function nvmlDeviceGetRemappedRows(device, corrRows, uncRows, isPending, failureOccurred) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetRemappedRows(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetRemappedRows(device::nvmlDevice_t, corrRows::Ptr{Cuint}, uncRows::Ptr{Cuint}, isPending::Ptr{Cuint}, @@ -3261,26 +3261,26 @@ end @checked function nvmlDeviceGetRowRemapperHistogram(device, values) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetRowRemapperHistogram(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetRowRemapperHistogram(device::nvmlDevice_t, values::Ptr{nvmlRowRemapperHistogramValues_t})::nvmlReturn_t end @checked function nvmlDeviceGetArchitecture(device, arch) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetArchitecture(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetArchitecture(device::nvmlDevice_t, arch::Ptr{nvmlDeviceArchitecture_t})::nvmlReturn_t end @checked function nvmlDeviceGetClkMonStatus(device, status) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetClkMonStatus(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetClkMonStatus(device::nvmlDevice_t, status::Ptr{nvmlClkMonStatus_t})::nvmlReturn_t end @checked function nvmlDeviceGetProcessUtilization(device, utilization, processSamplesCount, lastSeenTimeStamp) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetProcessUtilization(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetProcessUtilization(device::nvmlDevice_t, utilization::Ptr{nvmlProcessUtilizationSample_t}, processSamplesCount::Ptr{Cuint}, lastSeenTimeStamp::Culonglong)::nvmlReturn_t @@ -3288,67 +3288,67 @@ end @checked function nvmlDeviceGetProcessesUtilizationInfo(device, procesesUtilInfo) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetProcessesUtilizationInfo(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetProcessesUtilizationInfo(device::nvmlDevice_t, procesesUtilInfo::Ptr{nvmlProcessesUtilizationInfo_t})::nvmlReturn_t end @checked function nvmlDeviceGetPlatformInfo(device, platformInfo) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetPlatformInfo(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetPlatformInfo(device::nvmlDevice_t, platformInfo::Ptr{nvmlPlatformInfo_t})::nvmlReturn_t end @checked function nvmlDeviceGetPdi(device, pdi) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetPdi(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetPdi(device::nvmlDevice_t, pdi::Ptr{nvmlPdi_t})::nvmlReturn_t end @checked function nvmlDeviceSetHostname_v1(device, hostname) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceSetHostname_v1(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceSetHostname_v1(device::nvmlDevice_t, hostname::Ptr{nvmlHostname_v1_t})::nvmlReturn_t end @checked function nvmlDeviceGetHostname_v1(device, hostname) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetHostname_v1(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetHostname_v1(device::nvmlDevice_t, hostname::Ptr{nvmlHostname_v1_t})::nvmlReturn_t end @checked function nvmlUnitSetLedState(unit, color) initialize_context() - @gcsafe_ccall (libnvml()).nvmlUnitSetLedState(unit::nvmlUnit_t, + @gcsafe_ccall libnvml.nvmlUnitSetLedState(unit::nvmlUnit_t, color::nvmlLedColor_t)::nvmlReturn_t end @checked function nvmlDeviceSetPersistenceMode(device, mode) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceSetPersistenceMode(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceSetPersistenceMode(device::nvmlDevice_t, mode::nvmlEnableState_t)::nvmlReturn_t end @checked function nvmlDeviceSetComputeMode(device, mode) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceSetComputeMode(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceSetComputeMode(device::nvmlDevice_t, mode::nvmlComputeMode_t)::nvmlReturn_t end @checked function nvmlDeviceSetEccMode(device, ecc) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceSetEccMode(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceSetEccMode(device::nvmlDevice_t, ecc::nvmlEnableState_t)::nvmlReturn_t end @checked function nvmlDeviceClearEccErrorCounts(device, counterType) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceClearEccErrorCounts(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceClearEccErrorCounts(device::nvmlDevice_t, counterType::nvmlEccCounterType_t)::nvmlReturn_t end @checked function nvmlDeviceSetDriverModel(device, driverModel, flags) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceSetDriverModel(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceSetDriverModel(device::nvmlDevice_t, driverModel::nvmlDriverModel_t, flags::Cuint)::nvmlReturn_t end @@ -3363,119 +3363,119 @@ const nvmlClockLimitId_t = nvmlClockLimitId_enum @checked function nvmlDeviceSetGpuLockedClocks(device, minGpuClockMHz, maxGpuClockMHz) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceSetGpuLockedClocks(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceSetGpuLockedClocks(device::nvmlDevice_t, minGpuClockMHz::Cuint, maxGpuClockMHz::Cuint)::nvmlReturn_t end @checked function nvmlDeviceResetGpuLockedClocks(device) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceResetGpuLockedClocks(device::nvmlDevice_t)::nvmlReturn_t + @gcsafe_ccall libnvml.nvmlDeviceResetGpuLockedClocks(device::nvmlDevice_t)::nvmlReturn_t end @checked function nvmlDeviceSetMemoryLockedClocks(device, minMemClockMHz, maxMemClockMHz) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceSetMemoryLockedClocks(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceSetMemoryLockedClocks(device::nvmlDevice_t, minMemClockMHz::Cuint, maxMemClockMHz::Cuint)::nvmlReturn_t end @checked function nvmlDeviceResetMemoryLockedClocks(device) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceResetMemoryLockedClocks(device::nvmlDevice_t)::nvmlReturn_t + @gcsafe_ccall libnvml.nvmlDeviceResetMemoryLockedClocks(device::nvmlDevice_t)::nvmlReturn_t end @checked function nvmlDeviceSetApplicationsClocks(device, memClockMHz, graphicsClockMHz) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceSetApplicationsClocks(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceSetApplicationsClocks(device::nvmlDevice_t, memClockMHz::Cuint, graphicsClockMHz::Cuint)::nvmlReturn_t end @checked function nvmlDeviceResetApplicationsClocks(device) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceResetApplicationsClocks(device::nvmlDevice_t)::nvmlReturn_t + @gcsafe_ccall libnvml.nvmlDeviceResetApplicationsClocks(device::nvmlDevice_t)::nvmlReturn_t end @checked function nvmlDeviceSetAutoBoostedClocksEnabled(device, enabled) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceSetAutoBoostedClocksEnabled(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceSetAutoBoostedClocksEnabled(device::nvmlDevice_t, enabled::nvmlEnableState_t)::nvmlReturn_t end @checked function nvmlDeviceSetDefaultAutoBoostedClocksEnabled(device, enabled, flags) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceSetDefaultAutoBoostedClocksEnabled(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceSetDefaultAutoBoostedClocksEnabled(device::nvmlDevice_t, enabled::nvmlEnableState_t, flags::Cuint)::nvmlReturn_t end @checked function nvmlDeviceSetDefaultFanSpeed_v2(device, fan) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceSetDefaultFanSpeed_v2(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceSetDefaultFanSpeed_v2(device::nvmlDevice_t, fan::Cuint)::nvmlReturn_t end @checked function nvmlDeviceSetFanControlPolicy(device, fan, policy) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceSetFanControlPolicy(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceSetFanControlPolicy(device::nvmlDevice_t, fan::Cuint, policy::nvmlFanControlPolicy_t)::nvmlReturn_t end @checked function nvmlDeviceSetTemperatureThreshold(device, thresholdType, temp) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceSetTemperatureThreshold(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceSetTemperatureThreshold(device::nvmlDevice_t, thresholdType::nvmlTemperatureThresholds_t, temp::Ptr{Cint})::nvmlReturn_t end @checked function nvmlDeviceSetPowerManagementLimit(device, limit) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceSetPowerManagementLimit(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceSetPowerManagementLimit(device::nvmlDevice_t, limit::Cuint)::nvmlReturn_t end @checked function nvmlDeviceSetGpuOperationMode(device, mode) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceSetGpuOperationMode(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceSetGpuOperationMode(device::nvmlDevice_t, mode::nvmlGpuOperationMode_t)::nvmlReturn_t end @checked function nvmlDeviceSetAPIRestriction(device, apiType, isRestricted) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceSetAPIRestriction(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceSetAPIRestriction(device::nvmlDevice_t, apiType::nvmlRestrictedAPI_t, isRestricted::nvmlEnableState_t)::nvmlReturn_t end @checked function nvmlDeviceSetFanSpeed_v2(device, fan, speed) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceSetFanSpeed_v2(device::nvmlDevice_t, fan::Cuint, + @gcsafe_ccall libnvml.nvmlDeviceSetFanSpeed_v2(device::nvmlDevice_t, fan::Cuint, speed::Cuint)::nvmlReturn_t end @checked function nvmlDeviceSetGpcClkVfOffset(device, offset) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceSetGpcClkVfOffset(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceSetGpcClkVfOffset(device::nvmlDevice_t, offset::Cint)::nvmlReturn_t end @checked function nvmlDeviceSetMemClkVfOffset(device, offset) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceSetMemClkVfOffset(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceSetMemClkVfOffset(device::nvmlDevice_t, offset::Cint)::nvmlReturn_t end @checked function nvmlDeviceSetAccountingMode(device, mode) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceSetAccountingMode(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceSetAccountingMode(device::nvmlDevice_t, mode::nvmlEnableState_t)::nvmlReturn_t end @checked function nvmlDeviceClearAccountingPids(device) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceClearAccountingPids(device::nvmlDevice_t)::nvmlReturn_t + @gcsafe_ccall libnvml.nvmlDeviceClearAccountingPids(device::nvmlDevice_t)::nvmlReturn_t end struct nvmlNvlinkSupportedBwModes_v1_t @@ -3529,19 +3529,19 @@ const nvmlNvLinkInfo_t = nvmlNvLinkInfo_v2_t @checked function nvmlDeviceGetNvLinkState(device, link, isActive) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetNvLinkState(device::nvmlDevice_t, link::Cuint, + @gcsafe_ccall libnvml.nvmlDeviceGetNvLinkState(device::nvmlDevice_t, link::Cuint, isActive::Ptr{nvmlEnableState_t})::nvmlReturn_t end @checked function nvmlDeviceGetNvLinkVersion(device, link, version) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetNvLinkVersion(device::nvmlDevice_t, link::Cuint, + @gcsafe_ccall libnvml.nvmlDeviceGetNvLinkVersion(device::nvmlDevice_t, link::Cuint, version::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlDeviceGetNvLinkCapability(device, link, capability, capResult) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetNvLinkCapability(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetNvLinkCapability(device::nvmlDevice_t, link::Cuint, capability::nvmlNvLinkCapability_t, capResult::Ptr{Cuint})::nvmlReturn_t @@ -3549,14 +3549,14 @@ end @checked function nvmlDeviceGetNvLinkRemotePciInfo_v2(device, link, pci) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetNvLinkRemotePciInfo_v2(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetNvLinkRemotePciInfo_v2(device::nvmlDevice_t, link::Cuint, pci::Ptr{nvmlPciInfo_t})::nvmlReturn_t end @checked function nvmlDeviceGetNvLinkErrorCounter(device, link, counter, counterValue) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetNvLinkErrorCounter(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetNvLinkErrorCounter(device::nvmlDevice_t, link::Cuint, counter::nvmlNvLinkErrorCounter_t, counterValue::Ptr{Culonglong})::nvmlReturn_t @@ -3564,14 +3564,14 @@ end @checked function nvmlDeviceResetNvLinkErrorCounters(device, link) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceResetNvLinkErrorCounters(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceResetNvLinkErrorCounters(device::nvmlDevice_t, link::Cuint)::nvmlReturn_t end @checked function nvmlDeviceSetNvLinkUtilizationControl(device, link, counter, control, reset) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceSetNvLinkUtilizationControl(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceSetNvLinkUtilizationControl(device::nvmlDevice_t, link::Cuint, counter::Cuint, control::Ptr{nvmlNvLinkUtilizationControl_t}, @@ -3580,7 +3580,7 @@ end @checked function nvmlDeviceGetNvLinkUtilizationControl(device, link, counter, control) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetNvLinkUtilizationControl(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetNvLinkUtilizationControl(device::nvmlDevice_t, link::Cuint, counter::Cuint, control::Ptr{nvmlNvLinkUtilizationControl_t})::nvmlReturn_t @@ -3589,7 +3589,7 @@ end @checked function nvmlDeviceGetNvLinkUtilizationCounter(device, link, counter, rxcounter, txcounter) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetNvLinkUtilizationCounter(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetNvLinkUtilizationCounter(device::nvmlDevice_t, link::Cuint, counter::Cuint, rxcounter::Ptr{Culonglong}, @@ -3598,7 +3598,7 @@ end @checked function nvmlDeviceFreezeNvLinkUtilizationCounter(device, link, counter, freeze) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceFreezeNvLinkUtilizationCounter(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceFreezeNvLinkUtilizationCounter(device::nvmlDevice_t, link::Cuint, counter::Cuint, freeze::nvmlEnableState_t)::nvmlReturn_t @@ -3606,186 +3606,186 @@ end @checked function nvmlDeviceResetNvLinkUtilizationCounter(device, link, counter) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceResetNvLinkUtilizationCounter(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceResetNvLinkUtilizationCounter(device::nvmlDevice_t, link::Cuint, counter::Cuint)::nvmlReturn_t end @checked function nvmlDeviceGetNvLinkRemoteDeviceType(device, link, pNvLinkDeviceType) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetNvLinkRemoteDeviceType(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetNvLinkRemoteDeviceType(device::nvmlDevice_t, link::Cuint, pNvLinkDeviceType::Ptr{nvmlIntNvLinkDeviceType_t})::nvmlReturn_t end @checked function nvmlDeviceSetNvLinkDeviceLowPowerThreshold(device, info) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceSetNvLinkDeviceLowPowerThreshold(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceSetNvLinkDeviceLowPowerThreshold(device::nvmlDevice_t, info::Ptr{nvmlNvLinkPowerThres_t})::nvmlReturn_t end @checked function nvmlSystemSetNvlinkBwMode(nvlinkBwMode) initialize_context() - @gcsafe_ccall (libnvml()).nvmlSystemSetNvlinkBwMode(nvlinkBwMode::Cuint)::nvmlReturn_t + @gcsafe_ccall libnvml.nvmlSystemSetNvlinkBwMode(nvlinkBwMode::Cuint)::nvmlReturn_t end @checked function nvmlSystemGetNvlinkBwMode(nvlinkBwMode) initialize_context() - @gcsafe_ccall (libnvml()).nvmlSystemGetNvlinkBwMode(nvlinkBwMode::Ptr{Cuint})::nvmlReturn_t + @gcsafe_ccall libnvml.nvmlSystemGetNvlinkBwMode(nvlinkBwMode::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlDeviceGetNvlinkSupportedBwModes(device, supportedBwMode) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetNvlinkSupportedBwModes(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetNvlinkSupportedBwModes(device::nvmlDevice_t, supportedBwMode::Ptr{nvmlNvlinkSupportedBwModes_t})::nvmlReturn_t end @checked function nvmlDeviceGetNvlinkBwMode(device, getBwMode) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetNvlinkBwMode(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetNvlinkBwMode(device::nvmlDevice_t, getBwMode::Ptr{nvmlNvlinkGetBwMode_t})::nvmlReturn_t end @checked function nvmlDeviceSetNvlinkBwMode(device, setBwMode) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceSetNvlinkBwMode(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceSetNvlinkBwMode(device::nvmlDevice_t, setBwMode::Ptr{nvmlNvlinkSetBwMode_t})::nvmlReturn_t end @checked function nvmlDeviceGetNvLinkInfo(device, info) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetNvLinkInfo(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetNvLinkInfo(device::nvmlDevice_t, info::Ptr{nvmlNvLinkInfo_t})::nvmlReturn_t end @checked function nvmlEventSetCreate(set) initialize_context() - @gcsafe_ccall (libnvml()).nvmlEventSetCreate(set::Ptr{nvmlEventSet_t})::nvmlReturn_t + @gcsafe_ccall libnvml.nvmlEventSetCreate(set::Ptr{nvmlEventSet_t})::nvmlReturn_t end @checked function nvmlDeviceRegisterEvents(device, eventTypes, set) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceRegisterEvents(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceRegisterEvents(device::nvmlDevice_t, eventTypes::Culonglong, set::nvmlEventSet_t)::nvmlReturn_t end @checked function nvmlDeviceGetSupportedEventTypes(device, eventTypes) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetSupportedEventTypes(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetSupportedEventTypes(device::nvmlDevice_t, eventTypes::Ptr{Culonglong})::nvmlReturn_t end @checked function nvmlEventSetWait_v2(set, data, timeoutms) initialize_context() - @gcsafe_ccall (libnvml()).nvmlEventSetWait_v2(set::nvmlEventSet_t, + @gcsafe_ccall libnvml.nvmlEventSetWait_v2(set::nvmlEventSet_t, data::Ptr{nvmlEventData_t}, timeoutms::Cuint)::nvmlReturn_t end @checked function nvmlEventSetFree(set) initialize_context() - @gcsafe_ccall (libnvml()).nvmlEventSetFree(set::nvmlEventSet_t)::nvmlReturn_t + @gcsafe_ccall libnvml.nvmlEventSetFree(set::nvmlEventSet_t)::nvmlReturn_t end @checked function nvmlSystemEventSetCreate(request) initialize_context() - @gcsafe_ccall (libnvml()).nvmlSystemEventSetCreate(request::Ptr{nvmlSystemEventSetCreateRequest_t})::nvmlReturn_t + @gcsafe_ccall libnvml.nvmlSystemEventSetCreate(request::Ptr{nvmlSystemEventSetCreateRequest_t})::nvmlReturn_t end @checked function nvmlSystemEventSetFree(request) initialize_context() - @gcsafe_ccall (libnvml()).nvmlSystemEventSetFree(request::Ptr{nvmlSystemEventSetFreeRequest_t})::nvmlReturn_t + @gcsafe_ccall libnvml.nvmlSystemEventSetFree(request::Ptr{nvmlSystemEventSetFreeRequest_t})::nvmlReturn_t end @checked function nvmlSystemRegisterEvents(request) initialize_context() - @gcsafe_ccall (libnvml()).nvmlSystemRegisterEvents(request::Ptr{nvmlSystemRegisterEventRequest_t})::nvmlReturn_t + @gcsafe_ccall libnvml.nvmlSystemRegisterEvents(request::Ptr{nvmlSystemRegisterEventRequest_t})::nvmlReturn_t end @checked function nvmlSystemEventSetWait(request) initialize_context() - @gcsafe_ccall (libnvml()).nvmlSystemEventSetWait(request::Ptr{nvmlSystemEventSetWaitRequest_t})::nvmlReturn_t + @gcsafe_ccall libnvml.nvmlSystemEventSetWait(request::Ptr{nvmlSystemEventSetWaitRequest_t})::nvmlReturn_t end @checked function nvmlDeviceModifyDrainState(pciInfo, newState) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceModifyDrainState(pciInfo::Ptr{nvmlPciInfo_t}, + @gcsafe_ccall libnvml.nvmlDeviceModifyDrainState(pciInfo::Ptr{nvmlPciInfo_t}, newState::nvmlEnableState_t)::nvmlReturn_t end @checked function nvmlDeviceQueryDrainState(pciInfo, currentState) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceQueryDrainState(pciInfo::Ptr{nvmlPciInfo_t}, + @gcsafe_ccall libnvml.nvmlDeviceQueryDrainState(pciInfo::Ptr{nvmlPciInfo_t}, currentState::Ptr{nvmlEnableState_t})::nvmlReturn_t end @checked function nvmlDeviceRemoveGpu_v2(pciInfo, gpuState, linkState) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceRemoveGpu_v2(pciInfo::Ptr{nvmlPciInfo_t}, + @gcsafe_ccall libnvml.nvmlDeviceRemoveGpu_v2(pciInfo::Ptr{nvmlPciInfo_t}, gpuState::nvmlDetachGpuState_t, linkState::nvmlPcieLinkState_t)::nvmlReturn_t end @checked function nvmlDeviceDiscoverGpus(pciInfo) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceDiscoverGpus(pciInfo::Ptr{nvmlPciInfo_t})::nvmlReturn_t + @gcsafe_ccall libnvml.nvmlDeviceDiscoverGpus(pciInfo::Ptr{nvmlPciInfo_t})::nvmlReturn_t end @checked function nvmlDeviceGetFieldValues(device, valuesCount, values) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetFieldValues(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetFieldValues(device::nvmlDevice_t, valuesCount::Cint, values::Ptr{nvmlFieldValue_t})::nvmlReturn_t end @checked function nvmlDeviceClearFieldValues(device, valuesCount, values) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceClearFieldValues(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceClearFieldValues(device::nvmlDevice_t, valuesCount::Cint, values::Ptr{nvmlFieldValue_t})::nvmlReturn_t end @checked function nvmlDeviceGetVirtualizationMode(device, pVirtualMode) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetVirtualizationMode(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetVirtualizationMode(device::nvmlDevice_t, pVirtualMode::Ptr{nvmlGpuVirtualizationMode_t})::nvmlReturn_t end @checked function nvmlDeviceGetHostVgpuMode(device, pHostVgpuMode) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetHostVgpuMode(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetHostVgpuMode(device::nvmlDevice_t, pHostVgpuMode::Ptr{nvmlHostVgpuMode_t})::nvmlReturn_t end @checked function nvmlDeviceSetVirtualizationMode(device, virtualMode) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceSetVirtualizationMode(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceSetVirtualizationMode(device::nvmlDevice_t, virtualMode::nvmlGpuVirtualizationMode_t)::nvmlReturn_t end @checked function nvmlDeviceGetVgpuHeterogeneousMode(device, pHeterogeneousMode) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetVgpuHeterogeneousMode(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetVgpuHeterogeneousMode(device::nvmlDevice_t, pHeterogeneousMode::Ptr{nvmlVgpuHeterogeneousMode_t})::nvmlReturn_t end @checked function nvmlDeviceSetVgpuHeterogeneousMode(device, pHeterogeneousMode) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceSetVgpuHeterogeneousMode(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceSetVgpuHeterogeneousMode(device::nvmlDevice_t, pHeterogeneousMode::Ptr{nvmlVgpuHeterogeneousMode_t})::nvmlReturn_t end @checked function nvmlVgpuInstanceGetPlacementId(vgpuInstance, pPlacement) initialize_context() - @gcsafe_ccall (libnvml()).nvmlVgpuInstanceGetPlacementId(vgpuInstance::nvmlVgpuInstance_t, + @gcsafe_ccall libnvml.nvmlVgpuInstanceGetPlacementId(vgpuInstance::nvmlVgpuInstance_t, pPlacement::Ptr{nvmlVgpuPlacementId_t})::nvmlReturn_t end @checked function nvmlDeviceGetVgpuTypeSupportedPlacements(device, vgpuTypeId, pPlacementList) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetVgpuTypeSupportedPlacements(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetVgpuTypeSupportedPlacements(device::nvmlDevice_t, vgpuTypeId::nvmlVgpuTypeId_t, pPlacementList::Ptr{nvmlVgpuPlacementList_t})::nvmlReturn_t end @@ -3793,111 +3793,111 @@ end @checked function nvmlDeviceGetVgpuTypeCreatablePlacements(device, vgpuTypeId, pPlacementList) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetVgpuTypeCreatablePlacements(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetVgpuTypeCreatablePlacements(device::nvmlDevice_t, vgpuTypeId::nvmlVgpuTypeId_t, pPlacementList::Ptr{nvmlVgpuPlacementList_t})::nvmlReturn_t end @checked function nvmlVgpuTypeGetGspHeapSize(vgpuTypeId, gspHeapSize) initialize_context() - @gcsafe_ccall (libnvml()).nvmlVgpuTypeGetGspHeapSize(vgpuTypeId::nvmlVgpuTypeId_t, + @gcsafe_ccall libnvml.nvmlVgpuTypeGetGspHeapSize(vgpuTypeId::nvmlVgpuTypeId_t, gspHeapSize::Ptr{Culonglong})::nvmlReturn_t end @checked function nvmlVgpuTypeGetFbReservation(vgpuTypeId, fbReservation) initialize_context() - @gcsafe_ccall (libnvml()).nvmlVgpuTypeGetFbReservation(vgpuTypeId::nvmlVgpuTypeId_t, + @gcsafe_ccall libnvml.nvmlVgpuTypeGetFbReservation(vgpuTypeId::nvmlVgpuTypeId_t, fbReservation::Ptr{Culonglong})::nvmlReturn_t end @checked function nvmlVgpuInstanceGetRuntimeStateSize(vgpuInstance, pState) initialize_context() - @gcsafe_ccall (libnvml()).nvmlVgpuInstanceGetRuntimeStateSize(vgpuInstance::nvmlVgpuInstance_t, + @gcsafe_ccall libnvml.nvmlVgpuInstanceGetRuntimeStateSize(vgpuInstance::nvmlVgpuInstance_t, pState::Ptr{nvmlVgpuRuntimeState_t})::nvmlReturn_t end @checked function nvmlDeviceSetVgpuCapabilities(device, capability, state) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceSetVgpuCapabilities(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceSetVgpuCapabilities(device::nvmlDevice_t, capability::nvmlDeviceVgpuCapability_t, state::nvmlEnableState_t)::nvmlReturn_t end @checked function nvmlDeviceGetGridLicensableFeatures_v4(device, pGridLicensableFeatures) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetGridLicensableFeatures_v4(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetGridLicensableFeatures_v4(device::nvmlDevice_t, pGridLicensableFeatures::Ptr{nvmlGridLicensableFeatures_t})::nvmlReturn_t end @checked function nvmlGetVgpuDriverCapabilities(capability, capResult) initialize_context() - @gcsafe_ccall (libnvml()).nvmlGetVgpuDriverCapabilities(capability::nvmlVgpuDriverCapability_t, + @gcsafe_ccall libnvml.nvmlGetVgpuDriverCapabilities(capability::nvmlVgpuDriverCapability_t, capResult::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlDeviceGetVgpuCapabilities(device, capability, capResult) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetVgpuCapabilities(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetVgpuCapabilities(device::nvmlDevice_t, capability::nvmlDeviceVgpuCapability_t, capResult::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlDeviceGetSupportedVgpus(device, vgpuCount, vgpuTypeIds) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetSupportedVgpus(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetSupportedVgpus(device::nvmlDevice_t, vgpuCount::Ptr{Cuint}, vgpuTypeIds::Ptr{nvmlVgpuTypeId_t})::nvmlReturn_t end @checked function nvmlDeviceGetCreatableVgpus(device, vgpuCount, vgpuTypeIds) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetCreatableVgpus(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetCreatableVgpus(device::nvmlDevice_t, vgpuCount::Ptr{Cuint}, vgpuTypeIds::Ptr{nvmlVgpuTypeId_t})::nvmlReturn_t end @checked function nvmlVgpuTypeGetClass(vgpuTypeId, vgpuTypeClass, size) initialize_context() - @gcsafe_ccall (libnvml()).nvmlVgpuTypeGetClass(vgpuTypeId::nvmlVgpuTypeId_t, + @gcsafe_ccall libnvml.nvmlVgpuTypeGetClass(vgpuTypeId::nvmlVgpuTypeId_t, vgpuTypeClass::Cstring, size::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlVgpuTypeGetName(vgpuTypeId, vgpuTypeName, size) initialize_context() - @gcsafe_ccall (libnvml()).nvmlVgpuTypeGetName(vgpuTypeId::nvmlVgpuTypeId_t, + @gcsafe_ccall libnvml.nvmlVgpuTypeGetName(vgpuTypeId::nvmlVgpuTypeId_t, vgpuTypeName::Cstring, size::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlVgpuTypeGetGpuInstanceProfileId(vgpuTypeId, gpuInstanceProfileId) initialize_context() - @gcsafe_ccall (libnvml()).nvmlVgpuTypeGetGpuInstanceProfileId(vgpuTypeId::nvmlVgpuTypeId_t, + @gcsafe_ccall libnvml.nvmlVgpuTypeGetGpuInstanceProfileId(vgpuTypeId::nvmlVgpuTypeId_t, gpuInstanceProfileId::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlVgpuTypeGetDeviceID(vgpuTypeId, deviceID, subsystemID) initialize_context() - @gcsafe_ccall (libnvml()).nvmlVgpuTypeGetDeviceID(vgpuTypeId::nvmlVgpuTypeId_t, + @gcsafe_ccall libnvml.nvmlVgpuTypeGetDeviceID(vgpuTypeId::nvmlVgpuTypeId_t, deviceID::Ptr{Culonglong}, subsystemID::Ptr{Culonglong})::nvmlReturn_t end @checked function nvmlVgpuTypeGetFramebufferSize(vgpuTypeId, fbSize) initialize_context() - @gcsafe_ccall (libnvml()).nvmlVgpuTypeGetFramebufferSize(vgpuTypeId::nvmlVgpuTypeId_t, + @gcsafe_ccall libnvml.nvmlVgpuTypeGetFramebufferSize(vgpuTypeId::nvmlVgpuTypeId_t, fbSize::Ptr{Culonglong})::nvmlReturn_t end @checked function nvmlVgpuTypeGetNumDisplayHeads(vgpuTypeId, numDisplayHeads) initialize_context() - @gcsafe_ccall (libnvml()).nvmlVgpuTypeGetNumDisplayHeads(vgpuTypeId::nvmlVgpuTypeId_t, + @gcsafe_ccall libnvml.nvmlVgpuTypeGetNumDisplayHeads(vgpuTypeId::nvmlVgpuTypeId_t, numDisplayHeads::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlVgpuTypeGetResolution(vgpuTypeId, displayIndex, xdim, ydim) initialize_context() - @gcsafe_ccall (libnvml()).nvmlVgpuTypeGetResolution(vgpuTypeId::nvmlVgpuTypeId_t, + @gcsafe_ccall libnvml.nvmlVgpuTypeGetResolution(vgpuTypeId::nvmlVgpuTypeId_t, displayIndex::Cuint, xdim::Ptr{Cuint}, ydim::Ptr{Cuint})::nvmlReturn_t @@ -3905,110 +3905,110 @@ end @checked function nvmlVgpuTypeGetLicense(vgpuTypeId, vgpuTypeLicenseString, size) initialize_context() - @gcsafe_ccall (libnvml()).nvmlVgpuTypeGetLicense(vgpuTypeId::nvmlVgpuTypeId_t, + @gcsafe_ccall libnvml.nvmlVgpuTypeGetLicense(vgpuTypeId::nvmlVgpuTypeId_t, vgpuTypeLicenseString::Cstring, size::Cuint)::nvmlReturn_t end @checked function nvmlVgpuTypeGetFrameRateLimit(vgpuTypeId, frameRateLimit) initialize_context() - @gcsafe_ccall (libnvml()).nvmlVgpuTypeGetFrameRateLimit(vgpuTypeId::nvmlVgpuTypeId_t, + @gcsafe_ccall libnvml.nvmlVgpuTypeGetFrameRateLimit(vgpuTypeId::nvmlVgpuTypeId_t, frameRateLimit::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlVgpuTypeGetMaxInstances(device, vgpuTypeId, vgpuInstanceCount) initialize_context() - @gcsafe_ccall (libnvml()).nvmlVgpuTypeGetMaxInstances(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlVgpuTypeGetMaxInstances(device::nvmlDevice_t, vgpuTypeId::nvmlVgpuTypeId_t, vgpuInstanceCount::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlVgpuTypeGetMaxInstancesPerVm(vgpuTypeId, vgpuInstanceCountPerVm) initialize_context() - @gcsafe_ccall (libnvml()).nvmlVgpuTypeGetMaxInstancesPerVm(vgpuTypeId::nvmlVgpuTypeId_t, + @gcsafe_ccall libnvml.nvmlVgpuTypeGetMaxInstancesPerVm(vgpuTypeId::nvmlVgpuTypeId_t, vgpuInstanceCountPerVm::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlVgpuTypeGetBAR1Info(vgpuTypeId, bar1Info) initialize_context() - @gcsafe_ccall (libnvml()).nvmlVgpuTypeGetBAR1Info(vgpuTypeId::nvmlVgpuTypeId_t, + @gcsafe_ccall libnvml.nvmlVgpuTypeGetBAR1Info(vgpuTypeId::nvmlVgpuTypeId_t, bar1Info::Ptr{nvmlVgpuTypeBar1Info_t})::nvmlReturn_t end @checked function nvmlDeviceGetActiveVgpus(device, vgpuCount, vgpuInstances) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetActiveVgpus(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetActiveVgpus(device::nvmlDevice_t, vgpuCount::Ptr{Cuint}, vgpuInstances::Ptr{nvmlVgpuInstance_t})::nvmlReturn_t end @checked function nvmlVgpuInstanceGetVmID(vgpuInstance, vmId, size, vmIdType) initialize_context() - @gcsafe_ccall (libnvml()).nvmlVgpuInstanceGetVmID(vgpuInstance::nvmlVgpuInstance_t, + @gcsafe_ccall libnvml.nvmlVgpuInstanceGetVmID(vgpuInstance::nvmlVgpuInstance_t, vmId::Cstring, size::Cuint, vmIdType::Ptr{nvmlVgpuVmIdType_t})::nvmlReturn_t end @checked function nvmlVgpuInstanceGetUUID(vgpuInstance, uuid, size) initialize_context() - @gcsafe_ccall (libnvml()).nvmlVgpuInstanceGetUUID(vgpuInstance::nvmlVgpuInstance_t, + @gcsafe_ccall libnvml.nvmlVgpuInstanceGetUUID(vgpuInstance::nvmlVgpuInstance_t, uuid::Cstring, size::Cuint)::nvmlReturn_t end @checked function nvmlVgpuInstanceGetVmDriverVersion(vgpuInstance, version, length) initialize_context() - @gcsafe_ccall (libnvml()).nvmlVgpuInstanceGetVmDriverVersion(vgpuInstance::nvmlVgpuInstance_t, + @gcsafe_ccall libnvml.nvmlVgpuInstanceGetVmDriverVersion(vgpuInstance::nvmlVgpuInstance_t, version::Cstring, length::Cuint)::nvmlReturn_t end @checked function nvmlVgpuInstanceGetFbUsage(vgpuInstance, fbUsage) initialize_context() - @gcsafe_ccall (libnvml()).nvmlVgpuInstanceGetFbUsage(vgpuInstance::nvmlVgpuInstance_t, + @gcsafe_ccall libnvml.nvmlVgpuInstanceGetFbUsage(vgpuInstance::nvmlVgpuInstance_t, fbUsage::Ptr{Culonglong})::nvmlReturn_t end @checked function nvmlVgpuInstanceGetLicenseStatus(vgpuInstance, licensed) initialize_context() - @gcsafe_ccall (libnvml()).nvmlVgpuInstanceGetLicenseStatus(vgpuInstance::nvmlVgpuInstance_t, + @gcsafe_ccall libnvml.nvmlVgpuInstanceGetLicenseStatus(vgpuInstance::nvmlVgpuInstance_t, licensed::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlVgpuInstanceGetType(vgpuInstance, vgpuTypeId) initialize_context() - @gcsafe_ccall (libnvml()).nvmlVgpuInstanceGetType(vgpuInstance::nvmlVgpuInstance_t, + @gcsafe_ccall libnvml.nvmlVgpuInstanceGetType(vgpuInstance::nvmlVgpuInstance_t, vgpuTypeId::Ptr{nvmlVgpuTypeId_t})::nvmlReturn_t end @checked function nvmlVgpuInstanceGetFrameRateLimit(vgpuInstance, frameRateLimit) initialize_context() - @gcsafe_ccall (libnvml()).nvmlVgpuInstanceGetFrameRateLimit(vgpuInstance::nvmlVgpuInstance_t, + @gcsafe_ccall libnvml.nvmlVgpuInstanceGetFrameRateLimit(vgpuInstance::nvmlVgpuInstance_t, frameRateLimit::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlVgpuInstanceGetEccMode(vgpuInstance, eccMode) initialize_context() - @gcsafe_ccall (libnvml()).nvmlVgpuInstanceGetEccMode(vgpuInstance::nvmlVgpuInstance_t, + @gcsafe_ccall libnvml.nvmlVgpuInstanceGetEccMode(vgpuInstance::nvmlVgpuInstance_t, eccMode::Ptr{nvmlEnableState_t})::nvmlReturn_t end @checked function nvmlVgpuInstanceGetEncoderCapacity(vgpuInstance, encoderCapacity) initialize_context() - @gcsafe_ccall (libnvml()).nvmlVgpuInstanceGetEncoderCapacity(vgpuInstance::nvmlVgpuInstance_t, + @gcsafe_ccall libnvml.nvmlVgpuInstanceGetEncoderCapacity(vgpuInstance::nvmlVgpuInstance_t, encoderCapacity::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlVgpuInstanceSetEncoderCapacity(vgpuInstance, encoderCapacity) initialize_context() - @gcsafe_ccall (libnvml()).nvmlVgpuInstanceSetEncoderCapacity(vgpuInstance::nvmlVgpuInstance_t, + @gcsafe_ccall libnvml.nvmlVgpuInstanceSetEncoderCapacity(vgpuInstance::nvmlVgpuInstance_t, encoderCapacity::Cuint)::nvmlReturn_t end @checked function nvmlVgpuInstanceGetEncoderStats(vgpuInstance, sessionCount, averageFps, averageLatency) initialize_context() - @gcsafe_ccall (libnvml()).nvmlVgpuInstanceGetEncoderStats(vgpuInstance::nvmlVgpuInstance_t, + @gcsafe_ccall libnvml.nvmlVgpuInstanceGetEncoderStats(vgpuInstance::nvmlVgpuInstance_t, sessionCount::Ptr{Cuint}, averageFps::Ptr{Cuint}, averageLatency::Ptr{Cuint})::nvmlReturn_t @@ -4017,102 +4017,102 @@ end @checked function nvmlVgpuInstanceGetEncoderSessions(vgpuInstance, sessionCount, sessionInfo) initialize_context() - @gcsafe_ccall (libnvml()).nvmlVgpuInstanceGetEncoderSessions(vgpuInstance::nvmlVgpuInstance_t, + @gcsafe_ccall libnvml.nvmlVgpuInstanceGetEncoderSessions(vgpuInstance::nvmlVgpuInstance_t, sessionCount::Ptr{Cuint}, sessionInfo::Ptr{nvmlEncoderSessionInfo_t})::nvmlReturn_t end @checked function nvmlVgpuInstanceGetFBCStats(vgpuInstance, fbcStats) initialize_context() - @gcsafe_ccall (libnvml()).nvmlVgpuInstanceGetFBCStats(vgpuInstance::nvmlVgpuInstance_t, + @gcsafe_ccall libnvml.nvmlVgpuInstanceGetFBCStats(vgpuInstance::nvmlVgpuInstance_t, fbcStats::Ptr{nvmlFBCStats_t})::nvmlReturn_t end @checked function nvmlVgpuInstanceGetFBCSessions(vgpuInstance, sessionCount, sessionInfo) initialize_context() - @gcsafe_ccall (libnvml()).nvmlVgpuInstanceGetFBCSessions(vgpuInstance::nvmlVgpuInstance_t, + @gcsafe_ccall libnvml.nvmlVgpuInstanceGetFBCSessions(vgpuInstance::nvmlVgpuInstance_t, sessionCount::Ptr{Cuint}, sessionInfo::Ptr{nvmlFBCSessionInfo_t})::nvmlReturn_t end @checked function nvmlVgpuInstanceGetGpuInstanceId(vgpuInstance, gpuInstanceId) initialize_context() - @gcsafe_ccall (libnvml()).nvmlVgpuInstanceGetGpuInstanceId(vgpuInstance::nvmlVgpuInstance_t, + @gcsafe_ccall libnvml.nvmlVgpuInstanceGetGpuInstanceId(vgpuInstance::nvmlVgpuInstance_t, gpuInstanceId::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlVgpuInstanceGetGpuPciId(vgpuInstance, vgpuPciId, length) initialize_context() - @gcsafe_ccall (libnvml()).nvmlVgpuInstanceGetGpuPciId(vgpuInstance::nvmlVgpuInstance_t, + @gcsafe_ccall libnvml.nvmlVgpuInstanceGetGpuPciId(vgpuInstance::nvmlVgpuInstance_t, vgpuPciId::Cstring, length::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlVgpuTypeGetCapabilities(vgpuTypeId, capability, capResult) initialize_context() - @gcsafe_ccall (libnvml()).nvmlVgpuTypeGetCapabilities(vgpuTypeId::nvmlVgpuTypeId_t, + @gcsafe_ccall libnvml.nvmlVgpuTypeGetCapabilities(vgpuTypeId::nvmlVgpuTypeId_t, capability::nvmlVgpuCapability_t, capResult::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlVgpuInstanceGetMdevUUID(vgpuInstance, mdevUuid, size) initialize_context() - @gcsafe_ccall (libnvml()).nvmlVgpuInstanceGetMdevUUID(vgpuInstance::nvmlVgpuInstance_t, + @gcsafe_ccall libnvml.nvmlVgpuInstanceGetMdevUUID(vgpuInstance::nvmlVgpuInstance_t, mdevUuid::Cstring, size::Cuint)::nvmlReturn_t end @checked function nvmlGpuInstanceGetCreatableVgpus(gpuInstance, pVgpus) initialize_context() - @gcsafe_ccall (libnvml()).nvmlGpuInstanceGetCreatableVgpus(gpuInstance::nvmlGpuInstance_t, + @gcsafe_ccall libnvml.nvmlGpuInstanceGetCreatableVgpus(gpuInstance::nvmlGpuInstance_t, pVgpus::Ptr{nvmlVgpuTypeIdInfo_t})::nvmlReturn_t end @checked function nvmlVgpuTypeGetMaxInstancesPerGpuInstance(pMaxInstance) initialize_context() - @gcsafe_ccall (libnvml()).nvmlVgpuTypeGetMaxInstancesPerGpuInstance(pMaxInstance::Ptr{nvmlVgpuTypeMaxInstance_t})::nvmlReturn_t + @gcsafe_ccall libnvml.nvmlVgpuTypeGetMaxInstancesPerGpuInstance(pMaxInstance::Ptr{nvmlVgpuTypeMaxInstance_t})::nvmlReturn_t end @checked function nvmlGpuInstanceGetActiveVgpus(gpuInstance, pVgpuInstanceInfo) initialize_context() - @gcsafe_ccall (libnvml()).nvmlGpuInstanceGetActiveVgpus(gpuInstance::nvmlGpuInstance_t, + @gcsafe_ccall libnvml.nvmlGpuInstanceGetActiveVgpus(gpuInstance::nvmlGpuInstance_t, pVgpuInstanceInfo::Ptr{nvmlActiveVgpuInstanceInfo_t})::nvmlReturn_t end @checked function nvmlGpuInstanceSetVgpuSchedulerState(gpuInstance, pScheduler) initialize_context() - @gcsafe_ccall (libnvml()).nvmlGpuInstanceSetVgpuSchedulerState(gpuInstance::nvmlGpuInstance_t, + @gcsafe_ccall libnvml.nvmlGpuInstanceSetVgpuSchedulerState(gpuInstance::nvmlGpuInstance_t, pScheduler::Ptr{nvmlVgpuSchedulerState_t})::nvmlReturn_t end @checked function nvmlGpuInstanceGetVgpuSchedulerState(gpuInstance, pSchedulerStateInfo) initialize_context() - @gcsafe_ccall (libnvml()).nvmlGpuInstanceGetVgpuSchedulerState(gpuInstance::nvmlGpuInstance_t, + @gcsafe_ccall libnvml.nvmlGpuInstanceGetVgpuSchedulerState(gpuInstance::nvmlGpuInstance_t, pSchedulerStateInfo::Ptr{nvmlVgpuSchedulerStateInfo_t})::nvmlReturn_t end @checked function nvmlGpuInstanceGetVgpuSchedulerLog(gpuInstance, pSchedulerLogInfo) initialize_context() - @gcsafe_ccall (libnvml()).nvmlGpuInstanceGetVgpuSchedulerLog(gpuInstance::nvmlGpuInstance_t, + @gcsafe_ccall libnvml.nvmlGpuInstanceGetVgpuSchedulerLog(gpuInstance::nvmlGpuInstance_t, pSchedulerLogInfo::Ptr{nvmlVgpuSchedulerLogInfo_t})::nvmlReturn_t end @checked function nvmlGpuInstanceGetVgpuTypeCreatablePlacements(gpuInstance, pCreatablePlacementInfo) initialize_context() - @gcsafe_ccall (libnvml()).nvmlGpuInstanceGetVgpuTypeCreatablePlacements(gpuInstance::nvmlGpuInstance_t, + @gcsafe_ccall libnvml.nvmlGpuInstanceGetVgpuTypeCreatablePlacements(gpuInstance::nvmlGpuInstance_t, pCreatablePlacementInfo::Ptr{nvmlVgpuCreatablePlacementInfo_t})::nvmlReturn_t end @checked function nvmlGpuInstanceGetVgpuHeterogeneousMode(gpuInstance, pHeterogeneousMode) initialize_context() - @gcsafe_ccall (libnvml()).nvmlGpuInstanceGetVgpuHeterogeneousMode(gpuInstance::nvmlGpuInstance_t, + @gcsafe_ccall libnvml.nvmlGpuInstanceGetVgpuHeterogeneousMode(gpuInstance::nvmlGpuInstance_t, pHeterogeneousMode::Ptr{nvmlVgpuHeterogeneousMode_t})::nvmlReturn_t end @checked function nvmlGpuInstanceSetVgpuHeterogeneousMode(gpuInstance, pHeterogeneousMode) initialize_context() - @gcsafe_ccall (libnvml()).nvmlGpuInstanceSetVgpuHeterogeneousMode(gpuInstance::nvmlGpuInstance_t, + @gcsafe_ccall libnvml.nvmlGpuInstanceSetVgpuHeterogeneousMode(gpuInstance::nvmlGpuInstance_t, pHeterogeneousMode::Ptr{nvmlVgpuHeterogeneousMode_t})::nvmlReturn_t end @@ -4180,71 +4180,71 @@ const nvmlVgpuPgpuCompatibility_t = nvmlVgpuPgpuCompatibility_st @checked function nvmlVgpuInstanceGetMetadata(vgpuInstance, vgpuMetadata, bufferSize) initialize_context() - @gcsafe_ccall (libnvml()).nvmlVgpuInstanceGetMetadata(vgpuInstance::nvmlVgpuInstance_t, + @gcsafe_ccall libnvml.nvmlVgpuInstanceGetMetadata(vgpuInstance::nvmlVgpuInstance_t, vgpuMetadata::Ptr{nvmlVgpuMetadata_t}, bufferSize::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlDeviceGetVgpuMetadata(device, pgpuMetadata, bufferSize) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetVgpuMetadata(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetVgpuMetadata(device::nvmlDevice_t, pgpuMetadata::Ptr{nvmlVgpuPgpuMetadata_t}, bufferSize::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlGetVgpuCompatibility(vgpuMetadata, pgpuMetadata, compatibilityInfo) initialize_context() - @gcsafe_ccall (libnvml()).nvmlGetVgpuCompatibility(vgpuMetadata::Ptr{nvmlVgpuMetadata_t}, + @gcsafe_ccall libnvml.nvmlGetVgpuCompatibility(vgpuMetadata::Ptr{nvmlVgpuMetadata_t}, pgpuMetadata::Ptr{nvmlVgpuPgpuMetadata_t}, compatibilityInfo::Ptr{nvmlVgpuPgpuCompatibility_t})::nvmlReturn_t end @checked function nvmlDeviceGetPgpuMetadataString(device, pgpuMetadata, bufferSize) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetPgpuMetadataString(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetPgpuMetadataString(device::nvmlDevice_t, pgpuMetadata::Cstring, bufferSize::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlDeviceGetVgpuSchedulerLog(device, pSchedulerLog) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetVgpuSchedulerLog(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetVgpuSchedulerLog(device::nvmlDevice_t, pSchedulerLog::Ptr{nvmlVgpuSchedulerLog_t})::nvmlReturn_t end @checked function nvmlDeviceGetVgpuSchedulerState(device, pSchedulerState) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetVgpuSchedulerState(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetVgpuSchedulerState(device::nvmlDevice_t, pSchedulerState::Ptr{nvmlVgpuSchedulerGetState_t})::nvmlReturn_t end @checked function nvmlDeviceGetVgpuSchedulerCapabilities(device, pCapabilities) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetVgpuSchedulerCapabilities(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetVgpuSchedulerCapabilities(device::nvmlDevice_t, pCapabilities::Ptr{nvmlVgpuSchedulerCapabilities_t})::nvmlReturn_t end @checked function nvmlDeviceSetVgpuSchedulerState(device, pSchedulerState) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceSetVgpuSchedulerState(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceSetVgpuSchedulerState(device::nvmlDevice_t, pSchedulerState::Ptr{nvmlVgpuSchedulerSetState_t})::nvmlReturn_t end @checked function nvmlGetVgpuVersion(supported, current) initialize_context() - @gcsafe_ccall (libnvml()).nvmlGetVgpuVersion(supported::Ptr{nvmlVgpuVersion_t}, + @gcsafe_ccall libnvml.nvmlGetVgpuVersion(supported::Ptr{nvmlVgpuVersion_t}, current::Ptr{nvmlVgpuVersion_t})::nvmlReturn_t end @checked function nvmlSetVgpuVersion(vgpuVersion) initialize_context() - @gcsafe_ccall (libnvml()).nvmlSetVgpuVersion(vgpuVersion::Ptr{nvmlVgpuVersion_t})::nvmlReturn_t + @gcsafe_ccall libnvml.nvmlSetVgpuVersion(vgpuVersion::Ptr{nvmlVgpuVersion_t})::nvmlReturn_t end @checked function nvmlDeviceGetVgpuUtilization(device, lastSeenTimeStamp, sampleValType, vgpuInstanceSamplesCount, utilizationSamples) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetVgpuUtilization(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetVgpuUtilization(device::nvmlDevice_t, lastSeenTimeStamp::Culonglong, sampleValType::Ptr{nvmlValueType_t}, vgpuInstanceSamplesCount::Ptr{Cuint}, @@ -4253,7 +4253,7 @@ end @checked function nvmlDeviceGetVgpuInstancesUtilizationInfo(device, vgpuUtilInfo) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetVgpuInstancesUtilizationInfo(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetVgpuInstancesUtilizationInfo(device::nvmlDevice_t, vgpuUtilInfo::Ptr{nvmlVgpuInstancesUtilizationInfo_t})::nvmlReturn_t end @@ -4261,7 +4261,7 @@ end vgpuProcessSamplesCount, utilizationSamples) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetVgpuProcessUtilization(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetVgpuProcessUtilization(device::nvmlDevice_t, lastSeenTimeStamp::Culonglong, vgpuProcessSamplesCount::Ptr{Cuint}, utilizationSamples::Ptr{nvmlVgpuProcessUtilizationSample_t})::nvmlReturn_t @@ -4269,38 +4269,38 @@ end @checked function nvmlDeviceGetVgpuProcessesUtilizationInfo(device, vgpuProcUtilInfo) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetVgpuProcessesUtilizationInfo(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetVgpuProcessesUtilizationInfo(device::nvmlDevice_t, vgpuProcUtilInfo::Ptr{nvmlVgpuProcessesUtilizationInfo_t})::nvmlReturn_t end @checked function nvmlVgpuInstanceGetAccountingMode(vgpuInstance, mode) initialize_context() - @gcsafe_ccall (libnvml()).nvmlVgpuInstanceGetAccountingMode(vgpuInstance::nvmlVgpuInstance_t, + @gcsafe_ccall libnvml.nvmlVgpuInstanceGetAccountingMode(vgpuInstance::nvmlVgpuInstance_t, mode::Ptr{nvmlEnableState_t})::nvmlReturn_t end @checked function nvmlVgpuInstanceGetAccountingPids(vgpuInstance, count, pids) initialize_context() - @gcsafe_ccall (libnvml()).nvmlVgpuInstanceGetAccountingPids(vgpuInstance::nvmlVgpuInstance_t, + @gcsafe_ccall libnvml.nvmlVgpuInstanceGetAccountingPids(vgpuInstance::nvmlVgpuInstance_t, count::Ptr{Cuint}, pids::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlVgpuInstanceGetAccountingStats(vgpuInstance, pid, stats) initialize_context() - @gcsafe_ccall (libnvml()).nvmlVgpuInstanceGetAccountingStats(vgpuInstance::nvmlVgpuInstance_t, + @gcsafe_ccall libnvml.nvmlVgpuInstanceGetAccountingStats(vgpuInstance::nvmlVgpuInstance_t, pid::Cuint, stats::Ptr{nvmlAccountingStats_t})::nvmlReturn_t end @checked function nvmlVgpuInstanceClearAccountingPids(vgpuInstance) initialize_context() - @gcsafe_ccall (libnvml()).nvmlVgpuInstanceClearAccountingPids(vgpuInstance::nvmlVgpuInstance_t)::nvmlReturn_t + @gcsafe_ccall libnvml.nvmlVgpuInstanceClearAccountingPids(vgpuInstance::nvmlVgpuInstance_t)::nvmlReturn_t end @checked function nvmlVgpuInstanceGetLicenseInfo_v2(vgpuInstance, licenseInfo) initialize_context() - @gcsafe_ccall (libnvml()).nvmlVgpuInstanceGetLicenseInfo_v2(vgpuInstance::nvmlVgpuInstance_t, + @gcsafe_ccall libnvml.nvmlVgpuInstanceGetLicenseInfo_v2(vgpuInstance::nvmlVgpuInstance_t, licenseInfo::Ptr{nvmlVgpuLicenseInfo_t})::nvmlReturn_t end @@ -4313,12 +4313,12 @@ const nvmlExcludedDeviceInfo_t = nvmlExcludedDeviceInfo_st @checked function nvmlGetExcludedDeviceCount(deviceCount) initialize_context() - @gcsafe_ccall (libnvml()).nvmlGetExcludedDeviceCount(deviceCount::Ptr{Cuint})::nvmlReturn_t + @gcsafe_ccall libnvml.nvmlGetExcludedDeviceCount(deviceCount::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlGetExcludedDeviceInfoByIndex(index, info) initialize_context() - @gcsafe_ccall (libnvml()).nvmlGetExcludedDeviceInfoByIndex(index::Cuint, + @gcsafe_ccall libnvml.nvmlGetExcludedDeviceInfoByIndex(index::Cuint, info::Ptr{nvmlExcludedDeviceInfo_t})::nvmlReturn_t end @@ -4355,7 +4355,7 @@ end @checked function nvmlDeviceReadWritePRM_v1(device, buffer) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceReadWritePRM_v1(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceReadWritePRM_v1(device::nvmlDevice_t, buffer::Ptr{nvmlPRMTLV_v1_t})::nvmlReturn_t end @@ -4497,34 +4497,34 @@ const nvmlComputeInstance_t = Ptr{nvmlComputeInstance_st} @checked function nvmlDeviceSetMigMode(device, mode, activationStatus) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceSetMigMode(device::nvmlDevice_t, mode::Cuint, + @gcsafe_ccall libnvml.nvmlDeviceSetMigMode(device::nvmlDevice_t, mode::Cuint, activationStatus::Ptr{nvmlReturn_t})::nvmlReturn_t end @checked function nvmlDeviceGetMigMode(device, currentMode, pendingMode) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetMigMode(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetMigMode(device::nvmlDevice_t, currentMode::Ptr{Cuint}, pendingMode::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlDeviceGetGpuInstanceProfileInfo(device, profile, info) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetGpuInstanceProfileInfo(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetGpuInstanceProfileInfo(device::nvmlDevice_t, profile::Cuint, info::Ptr{nvmlGpuInstanceProfileInfo_t})::nvmlReturn_t end @checked function nvmlDeviceGetGpuInstanceProfileInfoV(device, profile, info) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetGpuInstanceProfileInfoV(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetGpuInstanceProfileInfoV(device::nvmlDevice_t, profile::Cuint, info::Ptr{nvmlGpuInstanceProfileInfo_v2_t})::nvmlReturn_t end @checked function nvmlDeviceGetGpuInstanceProfileInfoByIdV(device, profileId, info) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetGpuInstanceProfileInfoByIdV(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetGpuInstanceProfileInfoByIdV(device::nvmlDevice_t, profileId::Cuint, info::Ptr{nvmlGpuInstanceProfileInfo_v2_t})::nvmlReturn_t end @@ -4532,7 +4532,7 @@ end @checked function nvmlDeviceGetGpuInstancePossiblePlacements_v2(device, profileId, placements, count) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetGpuInstancePossiblePlacements_v2(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetGpuInstancePossiblePlacements_v2(device::nvmlDevice_t, profileId::Cuint, placements::Ptr{nvmlGpuInstancePlacement_t}, count::Ptr{Cuint})::nvmlReturn_t @@ -4540,14 +4540,14 @@ end @checked function nvmlDeviceGetGpuInstanceRemainingCapacity(device, profileId, count) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetGpuInstanceRemainingCapacity(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetGpuInstanceRemainingCapacity(device::nvmlDevice_t, profileId::Cuint, count::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlDeviceCreateGpuInstance(device, profileId, gpuInstance) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceCreateGpuInstance(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceCreateGpuInstance(device::nvmlDevice_t, profileId::Cuint, gpuInstance::Ptr{nvmlGpuInstance_t})::nvmlReturn_t end @@ -4555,7 +4555,7 @@ end @checked function nvmlDeviceCreateGpuInstanceWithPlacement(device, profileId, placement, gpuInstance) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceCreateGpuInstanceWithPlacement(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceCreateGpuInstanceWithPlacement(device::nvmlDevice_t, profileId::Cuint, placement::Ptr{nvmlGpuInstancePlacement_t}, gpuInstance::Ptr{nvmlGpuInstance_t})::nvmlReturn_t @@ -4563,12 +4563,12 @@ end @checked function nvmlGpuInstanceDestroy(gpuInstance) initialize_context() - @gcsafe_ccall (libnvml()).nvmlGpuInstanceDestroy(gpuInstance::nvmlGpuInstance_t)::nvmlReturn_t + @gcsafe_ccall libnvml.nvmlGpuInstanceDestroy(gpuInstance::nvmlGpuInstance_t)::nvmlReturn_t end @checked function nvmlDeviceGetGpuInstances(device, profileId, gpuInstances, count) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetGpuInstances(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetGpuInstances(device::nvmlDevice_t, profileId::Cuint, gpuInstances::Ptr{nvmlGpuInstance_t}, count::Ptr{Cuint})::nvmlReturn_t @@ -4576,20 +4576,20 @@ end @checked function nvmlDeviceGetGpuInstanceById(device, id, gpuInstance) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetGpuInstanceById(device::nvmlDevice_t, id::Cuint, + @gcsafe_ccall libnvml.nvmlDeviceGetGpuInstanceById(device::nvmlDevice_t, id::Cuint, gpuInstance::Ptr{nvmlGpuInstance_t})::nvmlReturn_t end @checked function nvmlGpuInstanceGetInfo(gpuInstance, info) initialize_context() - @gcsafe_ccall (libnvml()).nvmlGpuInstanceGetInfo(gpuInstance::nvmlGpuInstance_t, + @gcsafe_ccall libnvml.nvmlGpuInstanceGetInfo(gpuInstance::nvmlGpuInstance_t, info::Ptr{nvmlGpuInstanceInfo_t})::nvmlReturn_t end @checked function nvmlGpuInstanceGetComputeInstanceProfileInfo(gpuInstance, profile, engProfile, info) initialize_context() - @gcsafe_ccall (libnvml()).nvmlGpuInstanceGetComputeInstanceProfileInfo(gpuInstance::nvmlGpuInstance_t, + @gcsafe_ccall libnvml.nvmlGpuInstanceGetComputeInstanceProfileInfo(gpuInstance::nvmlGpuInstance_t, profile::Cuint, engProfile::Cuint, info::Ptr{nvmlComputeInstanceProfileInfo_t})::nvmlReturn_t @@ -4598,7 +4598,7 @@ end @checked function nvmlGpuInstanceGetComputeInstanceProfileInfoV(gpuInstance, profile, engProfile, info) initialize_context() - @gcsafe_ccall (libnvml()).nvmlGpuInstanceGetComputeInstanceProfileInfoV(gpuInstance::nvmlGpuInstance_t, + @gcsafe_ccall libnvml.nvmlGpuInstanceGetComputeInstanceProfileInfoV(gpuInstance::nvmlGpuInstance_t, profile::Cuint, engProfile::Cuint, info::Ptr{nvmlComputeInstanceProfileInfo_v2_t})::nvmlReturn_t @@ -4607,7 +4607,7 @@ end @checked function nvmlGpuInstanceGetComputeInstanceRemainingCapacity(gpuInstance, profileId, count) initialize_context() - @gcsafe_ccall (libnvml()).nvmlGpuInstanceGetComputeInstanceRemainingCapacity(gpuInstance::nvmlGpuInstance_t, + @gcsafe_ccall libnvml.nvmlGpuInstanceGetComputeInstanceRemainingCapacity(gpuInstance::nvmlGpuInstance_t, profileId::Cuint, count::Ptr{Cuint})::nvmlReturn_t end @@ -4616,7 +4616,7 @@ end profileId, placements, count) initialize_context() - @gcsafe_ccall (libnvml()).nvmlGpuInstanceGetComputeInstancePossiblePlacements(gpuInstance::nvmlGpuInstance_t, + @gcsafe_ccall libnvml.nvmlGpuInstanceGetComputeInstancePossiblePlacements(gpuInstance::nvmlGpuInstance_t, profileId::Cuint, placements::Ptr{nvmlComputeInstancePlacement_t}, count::Ptr{Cuint})::nvmlReturn_t @@ -4625,7 +4625,7 @@ end @checked function nvmlGpuInstanceCreateComputeInstance(gpuInstance, profileId, computeInstance) initialize_context() - @gcsafe_ccall (libnvml()).nvmlGpuInstanceCreateComputeInstance(gpuInstance::nvmlGpuInstance_t, + @gcsafe_ccall libnvml.nvmlGpuInstanceCreateComputeInstance(gpuInstance::nvmlGpuInstance_t, profileId::Cuint, computeInstance::Ptr{nvmlComputeInstance_t})::nvmlReturn_t end @@ -4634,7 +4634,7 @@ end placement, computeInstance) initialize_context() - @gcsafe_ccall (libnvml()).nvmlGpuInstanceCreateComputeInstanceWithPlacement(gpuInstance::nvmlGpuInstance_t, + @gcsafe_ccall libnvml.nvmlGpuInstanceCreateComputeInstanceWithPlacement(gpuInstance::nvmlGpuInstance_t, profileId::Cuint, placement::Ptr{nvmlComputeInstancePlacement_t}, computeInstance::Ptr{nvmlComputeInstance_t})::nvmlReturn_t @@ -4642,13 +4642,13 @@ end @checked function nvmlComputeInstanceDestroy(computeInstance) initialize_context() - @gcsafe_ccall (libnvml()).nvmlComputeInstanceDestroy(computeInstance::nvmlComputeInstance_t)::nvmlReturn_t + @gcsafe_ccall libnvml.nvmlComputeInstanceDestroy(computeInstance::nvmlComputeInstance_t)::nvmlReturn_t end @checked function nvmlGpuInstanceGetComputeInstances(gpuInstance, profileId, computeInstances, count) initialize_context() - @gcsafe_ccall (libnvml()).nvmlGpuInstanceGetComputeInstances(gpuInstance::nvmlGpuInstance_t, + @gcsafe_ccall libnvml.nvmlGpuInstanceGetComputeInstances(gpuInstance::nvmlGpuInstance_t, profileId::Cuint, computeInstances::Ptr{nvmlComputeInstance_t}, count::Ptr{Cuint})::nvmlReturn_t @@ -4656,51 +4656,51 @@ end @checked function nvmlGpuInstanceGetComputeInstanceById(gpuInstance, id, computeInstance) initialize_context() - @gcsafe_ccall (libnvml()).nvmlGpuInstanceGetComputeInstanceById(gpuInstance::nvmlGpuInstance_t, + @gcsafe_ccall libnvml.nvmlGpuInstanceGetComputeInstanceById(gpuInstance::nvmlGpuInstance_t, id::Cuint, computeInstance::Ptr{nvmlComputeInstance_t})::nvmlReturn_t end @checked function nvmlComputeInstanceGetInfo_v2(computeInstance, info) initialize_context() - @gcsafe_ccall (libnvml()).nvmlComputeInstanceGetInfo_v2(computeInstance::nvmlComputeInstance_t, + @gcsafe_ccall libnvml.nvmlComputeInstanceGetInfo_v2(computeInstance::nvmlComputeInstance_t, info::Ptr{nvmlComputeInstanceInfo_t})::nvmlReturn_t end @checked function nvmlDeviceIsMigDeviceHandle(device, isMigDevice) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceIsMigDeviceHandle(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceIsMigDeviceHandle(device::nvmlDevice_t, isMigDevice::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlDeviceGetGpuInstanceId(device, id) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetGpuInstanceId(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetGpuInstanceId(device::nvmlDevice_t, id::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlDeviceGetComputeInstanceId(device, id) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetComputeInstanceId(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetComputeInstanceId(device::nvmlDevice_t, id::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlDeviceGetMaxMigDeviceCount(device, count) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetMaxMigDeviceCount(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetMaxMigDeviceCount(device::nvmlDevice_t, count::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlDeviceGetMigDeviceHandleByIndex(device, index, migDevice) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetMigDeviceHandleByIndex(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetMigDeviceHandleByIndex(device::nvmlDevice_t, index::Cuint, migDevice::Ptr{nvmlDevice_t})::nvmlReturn_t end @checked function nvmlDeviceGetDeviceHandleFromMigDeviceHandle(migDevice, device) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetDeviceHandleFromMigDeviceHandle(migDevice::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetDeviceHandleFromMigDeviceHandle(migDevice::nvmlDevice_t, device::Ptr{nvmlDevice_t})::nvmlReturn_t end @@ -4961,47 +4961,47 @@ end @checked function nvmlGpmMetricsGet(metricsGet) initialize_context() - @gcsafe_ccall (libnvml()).nvmlGpmMetricsGet(metricsGet::Ptr{nvmlGpmMetricsGet_t})::nvmlReturn_t + @gcsafe_ccall libnvml.nvmlGpmMetricsGet(metricsGet::Ptr{nvmlGpmMetricsGet_t})::nvmlReturn_t end @checked function nvmlGpmSampleFree(gpmSample) initialize_context() - @gcsafe_ccall (libnvml()).nvmlGpmSampleFree(gpmSample::nvmlGpmSample_t)::nvmlReturn_t + @gcsafe_ccall libnvml.nvmlGpmSampleFree(gpmSample::nvmlGpmSample_t)::nvmlReturn_t end @checked function nvmlGpmSampleAlloc(gpmSample) initialize_context() - @gcsafe_ccall (libnvml()).nvmlGpmSampleAlloc(gpmSample::Ptr{nvmlGpmSample_t})::nvmlReturn_t + @gcsafe_ccall libnvml.nvmlGpmSampleAlloc(gpmSample::Ptr{nvmlGpmSample_t})::nvmlReturn_t end @checked function nvmlGpmSampleGet(device, gpmSample) initialize_context() - @gcsafe_ccall (libnvml()).nvmlGpmSampleGet(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlGpmSampleGet(device::nvmlDevice_t, gpmSample::nvmlGpmSample_t)::nvmlReturn_t end @checked function nvmlGpmMigSampleGet(device, gpuInstanceId, gpmSample) initialize_context() - @gcsafe_ccall (libnvml()).nvmlGpmMigSampleGet(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlGpmMigSampleGet(device::nvmlDevice_t, gpuInstanceId::Cuint, gpmSample::nvmlGpmSample_t)::nvmlReturn_t end @checked function nvmlGpmQueryDeviceSupport(device, gpmSupport) initialize_context() - @gcsafe_ccall (libnvml()).nvmlGpmQueryDeviceSupport(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlGpmQueryDeviceSupport(device::nvmlDevice_t, gpmSupport::Ptr{nvmlGpmSupport_t})::nvmlReturn_t end @checked function nvmlGpmQueryIfStreamingEnabled(device, state) initialize_context() - @gcsafe_ccall (libnvml()).nvmlGpmQueryIfStreamingEnabled(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlGpmQueryIfStreamingEnabled(device::nvmlDevice_t, state::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlGpmSetStreamingEnabled(device, state) initialize_context() - @gcsafe_ccall (libnvml()).nvmlGpmSetStreamingEnabled(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlGpmSetStreamingEnabled(device::nvmlDevice_t, state::Cuint)::nvmlReturn_t end @@ -5014,7 +5014,7 @@ const nvmlDeviceCapabilities_t = nvmlDeviceCapabilities_v1_t @checked function nvmlDeviceGetCapabilities(device, caps) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetCapabilities(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetCapabilities(device::nvmlDevice_t, caps::Ptr{nvmlDeviceCapabilities_t})::nvmlReturn_t end @@ -5076,27 +5076,27 @@ const nvmlWorkloadPowerProfileRequestedProfiles_t = nvmlWorkloadPowerProfileRequ @checked function nvmlDeviceWorkloadPowerProfileGetProfilesInfo(device, profilesInfo) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceWorkloadPowerProfileGetProfilesInfo(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceWorkloadPowerProfileGetProfilesInfo(device::nvmlDevice_t, profilesInfo::Ptr{nvmlWorkloadPowerProfileProfilesInfo_t})::nvmlReturn_t end @checked function nvmlDeviceWorkloadPowerProfileGetCurrentProfiles(device, currentProfiles) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceWorkloadPowerProfileGetCurrentProfiles(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceWorkloadPowerProfileGetCurrentProfiles(device::nvmlDevice_t, currentProfiles::Ptr{nvmlWorkloadPowerProfileCurrentProfiles_t})::nvmlReturn_t end @checked function nvmlDeviceWorkloadPowerProfileSetRequestedProfiles(device, requestedProfiles) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceWorkloadPowerProfileSetRequestedProfiles(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceWorkloadPowerProfileSetRequestedProfiles(device::nvmlDevice_t, requestedProfiles::Ptr{nvmlWorkloadPowerProfileRequestedProfiles_t})::nvmlReturn_t end @checked function nvmlDeviceWorkloadPowerProfileClearRequestedProfiles(device, requestedProfiles) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceWorkloadPowerProfileClearRequestedProfiles(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceWorkloadPowerProfileClearRequestedProfiles(device::nvmlDevice_t, requestedProfiles::Ptr{nvmlWorkloadPowerProfileRequestedProfiles_t})::nvmlReturn_t end @@ -5118,148 +5118,148 @@ const nvmlPowerSmoothingState_t = nvmlPowerSmoothingState_v1_t @checked function nvmlDevicePowerSmoothingActivatePresetProfile(device, profile) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDevicePowerSmoothingActivatePresetProfile(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDevicePowerSmoothingActivatePresetProfile(device::nvmlDevice_t, profile::Ptr{nvmlPowerSmoothingProfile_t})::nvmlReturn_t end @checked function nvmlDevicePowerSmoothingUpdatePresetProfileParam(device, profile) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDevicePowerSmoothingUpdatePresetProfileParam(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDevicePowerSmoothingUpdatePresetProfileParam(device::nvmlDevice_t, profile::Ptr{nvmlPowerSmoothingProfile_t})::nvmlReturn_t end @checked function nvmlDevicePowerSmoothingSetState(device, state) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDevicePowerSmoothingSetState(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDevicePowerSmoothingSetState(device::nvmlDevice_t, state::Ptr{nvmlPowerSmoothingState_t})::nvmlReturn_t end @checked function nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts(device, errorCounts) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetSramUniqueUncorrectedEccErrorCounts(device::nvmlDevice_t, errorCounts::Ptr{nvmlEccSramUniqueUncorrectedErrorCounts_t})::nvmlReturn_t end @checked function nvmlInit() - @gcsafe_ccall (libnvml()).nvmlInit()::nvmlReturn_t + @gcsafe_ccall libnvml.nvmlInit()::nvmlReturn_t end @checked function nvmlDeviceGetCount(deviceCount) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetCount(deviceCount::Ptr{Cuint})::nvmlReturn_t + @gcsafe_ccall libnvml.nvmlDeviceGetCount(deviceCount::Ptr{Cuint})::nvmlReturn_t end @checked function nvmlDeviceGetHandleByIndex(index, device) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetHandleByIndex(index::Cuint, + @gcsafe_ccall libnvml.nvmlDeviceGetHandleByIndex(index::Cuint, device::Ptr{nvmlDevice_t})::nvmlReturn_t end @checked function nvmlDeviceGetHandleByPciBusId(pciBusId, device) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetHandleByPciBusId(pciBusId::Cstring, + @gcsafe_ccall libnvml.nvmlDeviceGetHandleByPciBusId(pciBusId::Cstring, device::Ptr{nvmlDevice_t})::nvmlReturn_t end @checked function nvmlDeviceGetPciInfo(device, pci) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetPciInfo(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetPciInfo(device::nvmlDevice_t, pci::Ptr{nvmlPciInfo_t})::nvmlReturn_t end @checked function nvmlDeviceGetPciInfo_v2(device, pci) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetPciInfo_v2(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetPciInfo_v2(device::nvmlDevice_t, pci::Ptr{nvmlPciInfo_t})::nvmlReturn_t end @checked function nvmlDeviceGetNvLinkRemotePciInfo(device, link, pci) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetNvLinkRemotePciInfo(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetNvLinkRemotePciInfo(device::nvmlDevice_t, link::Cuint, pci::Ptr{nvmlPciInfo_t})::nvmlReturn_t end @checked function nvmlDeviceGetGridLicensableFeatures(device, pGridLicensableFeatures) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetGridLicensableFeatures(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetGridLicensableFeatures(device::nvmlDevice_t, pGridLicensableFeatures::Ptr{nvmlGridLicensableFeatures_t})::nvmlReturn_t end @checked function nvmlDeviceGetGridLicensableFeatures_v2(device, pGridLicensableFeatures) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetGridLicensableFeatures_v2(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetGridLicensableFeatures_v2(device::nvmlDevice_t, pGridLicensableFeatures::Ptr{nvmlGridLicensableFeatures_t})::nvmlReturn_t end @checked function nvmlDeviceGetGridLicensableFeatures_v3(device, pGridLicensableFeatures) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetGridLicensableFeatures_v3(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetGridLicensableFeatures_v3(device::nvmlDevice_t, pGridLicensableFeatures::Ptr{nvmlGridLicensableFeatures_t})::nvmlReturn_t end @checked function nvmlDeviceRemoveGpu(pciInfo) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceRemoveGpu(pciInfo::Ptr{nvmlPciInfo_t})::nvmlReturn_t + @gcsafe_ccall libnvml.nvmlDeviceRemoveGpu(pciInfo::Ptr{nvmlPciInfo_t})::nvmlReturn_t end @checked function nvmlEventSetWait(set, data, timeoutms) initialize_context() - @gcsafe_ccall (libnvml()).nvmlEventSetWait(set::nvmlEventSet_t, + @gcsafe_ccall libnvml.nvmlEventSetWait(set::nvmlEventSet_t, data::Ptr{nvmlEventData_t}, timeoutms::Cuint)::nvmlReturn_t end @checked function nvmlDeviceGetAttributes(device, attributes) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetAttributes(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetAttributes(device::nvmlDevice_t, attributes::Ptr{nvmlDeviceAttributes_t})::nvmlReturn_t end @checked function nvmlComputeInstanceGetInfo(computeInstance, info) initialize_context() - @gcsafe_ccall (libnvml()).nvmlComputeInstanceGetInfo(computeInstance::nvmlComputeInstance_t, + @gcsafe_ccall libnvml.nvmlComputeInstanceGetInfo(computeInstance::nvmlComputeInstance_t, info::Ptr{nvmlComputeInstanceInfo_t})::nvmlReturn_t end @checked function nvmlDeviceGetComputeRunningProcesses(device, infoCount, infos) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetComputeRunningProcesses(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetComputeRunningProcesses(device::nvmlDevice_t, infoCount::Ptr{Cuint}, infos::Ptr{nvmlProcessInfo_v1_t})::nvmlReturn_t end @checked function nvmlDeviceGetComputeRunningProcesses_v2(device, infoCount, infos) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetComputeRunningProcesses_v2(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetComputeRunningProcesses_v2(device::nvmlDevice_t, infoCount::Ptr{Cuint}, infos::Ptr{nvmlProcessInfo_v2_t})::nvmlReturn_t end @checked function nvmlDeviceGetGraphicsRunningProcesses(device, infoCount, infos) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetGraphicsRunningProcesses(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetGraphicsRunningProcesses(device::nvmlDevice_t, infoCount::Ptr{Cuint}, infos::Ptr{nvmlProcessInfo_v1_t})::nvmlReturn_t end @checked function nvmlDeviceGetGraphicsRunningProcesses_v2(device, infoCount, infos) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetGraphicsRunningProcesses_v2(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetGraphicsRunningProcesses_v2(device::nvmlDevice_t, infoCount::Ptr{Cuint}, infos::Ptr{nvmlProcessInfo_v2_t})::nvmlReturn_t end @checked function nvmlDeviceGetMPSComputeRunningProcesses(device, infoCount, infos) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetMPSComputeRunningProcesses(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetMPSComputeRunningProcesses(device::nvmlDevice_t, infoCount::Ptr{Cuint}, infos::Ptr{nvmlProcessInfo_v1_t})::nvmlReturn_t end @checked function nvmlDeviceGetMPSComputeRunningProcesses_v2(device, infoCount, infos) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetMPSComputeRunningProcesses_v2(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetMPSComputeRunningProcesses_v2(device::nvmlDevice_t, infoCount::Ptr{Cuint}, infos::Ptr{nvmlProcessInfo_v2_t})::nvmlReturn_t end @@ -5267,7 +5267,7 @@ end @checked function nvmlDeviceGetGpuInstancePossiblePlacements(device, profileId, placements, count) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetGpuInstancePossiblePlacements(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetGpuInstancePossiblePlacements(device::nvmlDevice_t, profileId::Cuint, placements::Ptr{nvmlGpuInstancePlacement_t}, count::Ptr{Cuint})::nvmlReturn_t @@ -5275,13 +5275,13 @@ end @checked function nvmlVgpuInstanceGetLicenseInfo(vgpuInstance, licenseInfo) initialize_context() - @gcsafe_ccall (libnvml()).nvmlVgpuInstanceGetLicenseInfo(vgpuInstance::nvmlVgpuInstance_t, + @gcsafe_ccall libnvml.nvmlVgpuInstanceGetLicenseInfo(vgpuInstance::nvmlVgpuInstance_t, licenseInfo::Ptr{nvmlVgpuLicenseInfo_t})::nvmlReturn_t end @checked function nvmlDeviceGetDriverModel(device, current, pending) initialize_context() - @gcsafe_ccall (libnvml()).nvmlDeviceGetDriverModel(device::nvmlDevice_t, + @gcsafe_ccall libnvml.nvmlDeviceGetDriverModel(device::nvmlDevice_t, current::Ptr{nvmlDriverModel_t}, pending::Ptr{nvmlDriverModel_t})::nvmlReturn_t end diff --git a/src/device/intrinsics/indexing.jl b/src/device/intrinsics/indexing.jl index 7677c553f5..18113ab0af 100644 --- a/src/device/intrinsics/indexing.jl +++ b/src/device/intrinsics/indexing.jl @@ -63,54 +63,54 @@ end @device_functions begin -""" - gridDim()::NamedTuple +@doc """ + threadIdx()::NamedTuple -Returns the dimensions of the grid. -""" -@inline gridDim() = (x=gridDim_x(), y=gridDim_y(), z=gridDim_z()) +Returns the thread index within the block. +""" threadIdx +@inline threadIdx() = (x=threadIdx_x(), y=threadIdx_y(), z=threadIdx_z()) -""" - blockIdx()::NamedTuple +@doc """ + blockDim()::NamedTuple -Returns the block index within the grid. -""" -@inline blockIdx() = (x=blockIdx_x(), y=blockIdx_y(), z=blockIdx_z()) +Returns the dimensions (in threads) of the block. +""" blockDim +@inline blockDim() = (x=blockDim_x(), y=blockDim_y(), z=blockDim_z()) -""" - blockDim()::NamedTuple +@doc """ + blockIdx()::NamedTuple -Returns the dimensions of the block. -""" -@inline blockDim() = (x=blockDim_x(), y=blockDim_y(), z=blockDim_z()) +Returns the block index within the grid. +""" blockIdx +@inline blockIdx() = (x=blockIdx_x(), y=blockIdx_y(), z=blockIdx_z()) -""" - threadIdx()::NamedTuple +@doc """ + gridDim()::NamedTuple -Returns the thread index within the block. -""" -@inline threadIdx() = (x=threadIdx_x(), y=threadIdx_y(), z=threadIdx_z()) +Returns the dimensions (in blocks) of the grid. +""" gridDim +@inline gridDim() = (x=gridDim_x(), y=gridDim_y(), z=gridDim_z()) -""" +@doc """ warpsize()::Int32 Returns the warp size (in threads). -""" +""" warpsize @inline warpsize() = ccall("llvm.nvvm.read.ptx.sreg.warpsize", llvmcall, Int32, ()) -""" +@doc """ laneid()::Int32 Returns the thread's lane within the warp. -""" +""" laneid @inline laneid() = ccall("llvm.nvvm.read.ptx.sreg.laneid", llvmcall, Int32, ()) + 1i32 -""" +@doc """ lanemask(pred)::UInt32 Returns a 32-bit mask indicating which threads in a warp satisfy the given predicate. Supported predicates are `==`, `<`, `<=`, `>=`, and `>`. -""" +""" lanemask @inline function lanemask(pred::F) where F if pred === Base.:(==) ccall("llvm.nvvm.read.ptx.sreg.lanemask.eq", llvmcall, UInt32, ()) @@ -127,12 +127,12 @@ Supported predicates are `==`, `<`, `<=`, `>=`, and `>`. end end -""" +@doc """ active_mask() Returns a 32-bit mask indicating which threads in a warp are active with the current executing thread. -""" +""" active_mask @inline active_mask() = @asmcall("activemask.b32 \$0;", "=r", false, UInt32, Tuple{}) end diff --git a/src/device/intrinsics/math.jl b/src/device/intrinsics/math.jl index 677c86c138..dcd9b83ebf 100644 --- a/src/device/intrinsics/math.jl +++ b/src/device/intrinsics/math.jl @@ -375,6 +375,7 @@ end # For Float16, this even happens with a non-fastmath @llvm.maximum.f16 @device_override @inline Base.max(x::Float16, y::Float16) = ifelse(y > x, y, x) + @device_override @inline Base.min(x::Float16, y::Float16) = ifelse(y > x, x, y) end diff --git a/src/device/utils.jl b/src/device/utils.jl index f7e1df7fa3..4815870eae 100644 --- a/src/device/utils.jl +++ b/src/device/utils.jl @@ -52,8 +52,13 @@ macro device_functions(ex) # descend in blocks push!(out.args, rewrite(arg)) elseif Meta.isexpr(arg, [:function, :(=)]) - # rewrite function definitions - push!(out.args, :(@device_function $arg)) + # capture temp variable for Julia 1.13 (see issue #3019) + # and rewrite function definitions + if Meta.isexpr(arg, :(=)) && isa(arg.args[1], Symbol) && Meta.isexpr(arg.args[2], [:function, :(=)]) + push!(out.args, Expr(:(=), arg.args[1], :(@device_function $(arg.args[2])))) + else + push!(out.args, :(@device_function $arg)) + end else # preserve all the rest push!(out.args, arg) diff --git a/test/base/texture.jl b/test/base/texture.jl index e697f37461..816d4406a4 100644 --- a/test/base/texture.jl +++ b/test/base/texture.jl @@ -1,5 +1,8 @@ using Interpolations +# Texture interpolation crashes LLVM in Julia 1.13 +VERSION < v"1.13-" && @testset "texture" begin + @inline function calcpoint(blockIdx, blockDim, threadIdx, size) i = (blockIdx - 1) * blockDim + threadIdx return i, Float32(i) @@ -241,3 +244,5 @@ end end end end + +end diff --git a/test/core/device/ldg.jl b/test/core/device/ldg.jl index 4431b46615..18de42e1bc 100644 --- a/test/core/device/ldg.jl +++ b/test/core/device/ldg.jl @@ -1,6 +1,11 @@ @testset "ldg" begin ir = sprint(io->CUDA.code_llvm(io, CUDA.pointerref_ldg, Tuple{Core.LLVMPtr{Int,AS.Global},Int,Val{1}})) - @test occursin("@llvm.nvvm.ldg", ir) + if Base.libllvm_version >= v"20" + @test occursin("load i64, ptr addrspace(1)", ir) + else + # `@llvm.nvvm.ldg` only exists in LLVM <20 + @test occursin("@llvm.nvvm.ldg", ir) + end end diff --git a/test/libraries/cusolver/dense_generic.jl b/test/libraries/cusolver/dense_generic.jl index ec63ca82fb..24306f81bc 100644 --- a/test/libraries/cusolver/dense_generic.jl +++ b/test/libraries/cusolver/dense_generic.jl @@ -124,6 +124,13 @@ p = 5 @testset "sytrs!" begin @testset "uplo = $uplo" for uplo in ('L', 'U') @testset "pivoting = $pivoting" for pivoting in (false, true) + !pivoting && (CUSOLVER.version() < v"11.7.2") && continue + # We are always using pivoting when calling LAPCK. + # There is no point in disabling pivoting when calling + # sytrf. The test fails in this case, and we know that + # sytrf without pivoting is numericall unstable, so we + # didn't learn antying. Just don't do it. + !pivoting && (CUSOLVER.version() >= v"12") && continue A = rand(elty,n,n) B = rand(elty,n,p) C = rand(elty,n) @@ -131,7 +138,6 @@ p = 5 d_A = CuMatrix(A) d_B = CuMatrix(B) d_C = CuVector(C) - !pivoting && (CUSOLVER.version() < v"11.7.2") && continue if pivoting d_A, d_ipiv, _ = CUSOLVER.sytrf!(uplo, d_A; pivoting) d_ipiv = CuVector{Int64}(d_ipiv)