dmlc / XGBoost.jl

XGBoost Julia Package
Other
288 stars 111 forks source link

xgboost fails to find libxgboost #183

Closed montyvesselinov closed 1 year ago

montyvesselinov commented 1 year ago

xgboost fails to find libxgboost:

               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.9.1 (2023-06-07)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

(@v1.9) pkg> test XGBoost
     Testing XGBoost
      Status `C:\Users\monty\AppData\Local\Temp\jl_z9xfp2\Project.toml`
  [1520ce14] AbstractTrees v0.4.4
  [fa961155] CEnum v0.4.2
  [052768ef] CUDA v4.3.2
  [0f8b85d8] JSON3 v1.13.1
  [bac558e1] OrderedCollections v1.6.0
  [a0a7dd2c] SparseMatricesCSR v0.6.7
  [bd369af6] Tables v1.10.1
  [22787eb5] Term v2.0.4
  [009559a3] XGBoost v2.3.0
  [a5c6f535] XGBoost_jll v1.7.5+1
  [37e2e46d] LinearAlgebra `@stdlib/LinearAlgebra`
  [9a3f8284] Random `@stdlib/Random`
  [2f01184e] SparseArrays `@stdlib/SparseArrays`
  [10745b16] Statistics v1.9.0 `@stdlib/Statistics`
  [8dfed614] Test `@stdlib/Test`
      Status `C:\Users\monty\AppData\Local\Temp\jl_z9xfp2\Manifest.toml`
  [621f4979] AbstractFFTs v1.3.1
  [1520ce14] AbstractTrees v0.4.4
  [79e6a3ab] Adapt v3.6.2
  [a9b6321e] Atomix v0.1.0
  [ab4f0b2a] BFloat16s v0.4.2
  [fa961155] CEnum v0.4.2
  [052768ef] CUDA v4.3.2
  [1af6417a] CUDA_Runtime_Discovery v0.2.2
  [da1fd8a2] CodeTracking v1.3.1
  [9a962f9c] DataAPI v1.15.0
  [e2d170a0] DataValueInterfaces v1.0.0
⌃ [ffbed154] DocStringExtensions v0.8.6
  [e2ba6199] ExprTools v0.1.9
  [0c68f7d7] GPUArrays v8.8.1
  [46192b85] GPUArraysCore v0.1.5
⌅ [61eb1bfa] GPUCompiler v0.20.3
  [eafb193a] Highlights v0.5.2
  [92d709cd] IrrationalConstants v0.2.2
  [82899510] IteratorInterfaceExtensions v1.0.0
  [692b3bcd] JLLWrappers v1.4.1
  [0f8b85d8] JSON3 v1.13.1
  [63c18a36] KernelAbstractions v0.9.6
⌅ [929cbde3] LLVM v5.2.0
  [2ab3a3ac] LogExpFunctions v0.3.24
  [1914dd2f] MacroTools v0.5.10
  [1c23619d] MyterialColors v0.3.0
  [bac558e1] OrderedCollections v1.6.0
  [d96e819e] Parameters v0.12.3
  [69de0a69] Parsers v2.7.1
  [aea7be01] PrecompileTools v1.1.2
  [21216c6a] Preferences v1.4.0
  [33c8b6b6] ProgressLogging v0.1.4
  [74087812] Random123 v1.6.1
  [e6cf234a] RandomNumbers v1.5.3
  [189a3867] Reexport v1.2.2
  [ae029012] Requires v1.3.0
  [6c6a2e73] Scratch v1.2.0
  [a0a7dd2c] SparseMatricesCSR v0.6.7
  [276daf66] SpecialFunctions v2.3.0
  [90137ffa] StaticArrays v1.5.26
  [1e83bf80] StaticArraysCore v1.4.0
  [856f2bd8] StructTypes v1.10.0
  [3783bdb8] TableTraits v1.0.1
  [bd369af6] Tables v1.10.1
  [22787eb5] Term v2.0.4
  [a759f4b9] TimerOutputs v0.5.23
  [3a884ed6] UnPack v1.0.2
  [1cfade01] UnicodeFun v0.4.1
  [013be700] UnsafeAtomics v0.2.1
⌃ [d80eeb9a] UnsafeAtomicsLLVM v0.1.2
  [009559a3] XGBoost v2.3.0
  [4ee394cb] CUDA_Driver_jll v0.5.0+1
  [76a88914] CUDA_Runtime_jll v0.6.0+0
  [dad2f222] LLVMExtra_jll v0.0.22+0
  [1d63c593] LLVMOpenMP_jll v15.0.4+0
  [efe28fd5] OpenSpecFun_jll v0.5.5+0
  [a5c6f535] XGBoost_jll v1.7.5+1
  [0dad84c5] ArgTools v1.1.1 `@stdlib/ArgTools`
  [56f22d72] Artifacts `@stdlib/Artifacts`
  [2a0f44e3] Base64 `@stdlib/Base64`
  [ade2ca70] Dates `@stdlib/Dates`
  [f43a241f] Downloads v1.6.0 `@stdlib/Downloads`
  [7b1f6079] FileWatching `@stdlib/FileWatching`
  [b77e0a4c] InteractiveUtils `@stdlib/InteractiveUtils`
  [4af54fe1] LazyArtifacts `@stdlib/LazyArtifacts`
  [b27032c2] LibCURL v0.6.3 `@stdlib/LibCURL`
  [76f85450] LibGit2 `@stdlib/LibGit2`
  [8f399da3] Libdl `@stdlib/Libdl`
  [37e2e46d] LinearAlgebra `@stdlib/LinearAlgebra`
  [56ddb016] Logging `@stdlib/Logging`
  [d6f4376e] Markdown `@stdlib/Markdown`
  [a63ad114] Mmap `@stdlib/Mmap`
  [ca575930] NetworkOptions v1.2.0 `@stdlib/NetworkOptions`
  [44cfe95a] Pkg v1.9.0 `@stdlib/Pkg`
  [de0858da] Printf `@stdlib/Printf`
  [3fa0cd96] REPL `@stdlib/REPL`
  [9a3f8284] Random `@stdlib/Random`
  [ea8e919c] SHA v0.7.0 `@stdlib/SHA`
  [9e88b42a] Serialization `@stdlib/Serialization`
  [6462fe0b] Sockets `@stdlib/Sockets`
  [2f01184e] SparseArrays `@stdlib/SparseArrays`
  [10745b16] Statistics v1.9.0 `@stdlib/Statistics`
  [4607b0f0] SuiteSparse `@stdlib/SuiteSparse`
  [fa267f1f] TOML v1.0.3 `@stdlib/TOML`
  [a4e569a6] Tar v1.10.0 `@stdlib/Tar`
  [8dfed614] Test `@stdlib/Test`
  [cf7118a7] UUIDs `@stdlib/UUIDs`
  [4ec0a83e] Unicode `@stdlib/Unicode`
  [e66e0078] CompilerSupportLibraries_jll v1.0.2+0 `@stdlib/CompilerSupportLibraries_jll`
  [deac9b47] LibCURL_jll v7.84.0+0 `@stdlib/LibCURL_jll`
  [29816b5a] LibSSH2_jll v1.10.2+0 `@stdlib/LibSSH2_jll`
  [c8ffd9c3] MbedTLS_jll v2.28.2+0 `@stdlib/MbedTLS_jll`
  [14a3606d] MozillaCACerts_jll v2022.10.11 `@stdlib/MozillaCACerts_jll`
  [4536629a] OpenBLAS_jll v0.3.21+4 `@stdlib/OpenBLAS_jll`
  [05823500] OpenLibm_jll v0.8.1+0 `@stdlib/OpenLibm_jll`
  [bea87d4a] SuiteSparse_jll v5.10.1+6 `@stdlib/SuiteSparse_jll`
  [83775a58] Zlib_jll v1.2.13+0 `@stdlib/Zlib_jll`
  [8e850b90] libblastrampoline_jll v5.8.0+0 `@stdlib/libblastrampoline_jll`
  [8e850ede] nghttp2_jll v1.48.0+0 `@stdlib/nghttp2_jll`
  [3f19e933] p7zip_jll v17.4.0+0 `@stdlib/p7zip_jll`
        Info Packages marked with ⌃ and ⌅ have new versions available, but those with ⌅ are restricted by compatibility constraints from upgrading.
Precompiling project...
  ✗ XGBoost → XGBoostCUDAExt
  ✗ XGBoost → XGBoostTermExt
  0 dependencies successfully precompiled in 4 seconds. 66 already precompiled.
     Testing Running tests...
ERROR: LoadError: InitError: UndefVarError: `libxgboost` not defined
Stacktrace:
  [1] XGBRegisterLogCallback
    @ C:\Users\monty\.julia\packages\XGBoost\sa5Xe\src\Lib.jl:56 [inlined]
  [2] __init__()
    @ XGBoost C:\Users\monty\.julia\packages\XGBoost\sa5Xe\src\XGBoost.jl:41
  [3] register_restored_modules(sv::Core.SimpleVector, pkg::Base.PkgId, path::String)
    @ Base .\loading.jl:1115
  [4] _include_from_serialized(pkg::Base.PkgId, path::String, ocachepath::String, depmods::Vector{Any})
    @ Base .\loading.jl:1061
  [5] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String, build_id::UInt128)
    @ Base .\loading.jl:1506
  [6] _require(pkg::Base.PkgId, env::String)
    @ Base .\loading.jl:1783
  [7] _require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base .\loading.jl:1660
  [8] macro expansion
    @ .\loading.jl:1648 [inlined]
  [9] macro expansion
    @ .\lock.jl:267 [inlined]
 [10] require(into::Module, mod::Symbol)
    @ Base .\loading.jl:1611
 [11] include(fname::String)
    @ Base.MainInclude .\client.jl:478
 [12] top-level scope
    @ none:6
during initialization of module XGBoost
in expression starting at C:\Users\monty\.julia\packages\XGBoost\sa5Xe\test\runtests.jl:1
ERROR: Package XGBoost errored during testing
montyvesselinov commented 1 year ago

The problem occurs on Windows 11.

The artifact seems to be installed:

image

tylerjthomas9 commented 1 year ago

This is an issue with the binary not being found due to a cuda=none tag. Downgrading to XGBoost_jll@1.7.4 will fix this immediately. I have a PR with the patch, so v1.7.5 should work on Windows sometime soon. This error came up because I refactored the build to work for multiple CUDA versions, and I didn't realize that the cuda=none tag would create issues with Windows.

Also, I do not think XGBoost.jl will work on Julia v1.9.1 (only the nightly build works). The CSL bump that is currently on nightly, and has fixed XGBoost, LibSVM... on Windows will hopefully be backported for Julia v1.9.2. This thread has more information on the Windows issues that have been resolved on the nightly Julia build: https://github.com/dmlc/XGBoost.jl/issues/179

montyvesselinov commented 1 year ago

after switching to XGBoost_jll@1.7.4 it errored again. however, the error is different:

               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.9.1 (2023-06-07)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

(@v1.9) pkg> test XGBoost
     Testing XGBoost
      Status `C:\Users\monty\AppData\Local\Temp\jl_bDEwav\Project.toml`
  [1520ce14] AbstractTrees v0.4.4
  [fa961155] CEnum v0.4.2
  [052768ef] CUDA v4.3.2
  [0f8b85d8] JSON3 v1.13.1
  [bac558e1] OrderedCollections v1.6.0
  [a0a7dd2c] SparseMatricesCSR v0.6.7
  [bd369af6] Tables v1.10.1
  [22787eb5] Term v2.0.4
  [009559a3] XGBoost v2.3.0
⌃ [a5c6f535] XGBoost_jll v1.7.4+0
  [37e2e46d] LinearAlgebra `@stdlib/LinearAlgebra`
  [9a3f8284] Random `@stdlib/Random`
  [2f01184e] SparseArrays `@stdlib/SparseArrays`
  [10745b16] Statistics v1.9.0 `@stdlib/Statistics`
  [8dfed614] Test `@stdlib/Test`
      Status `C:\Users\monty\AppData\Local\Temp\jl_bDEwav\Manifest.toml`
  [621f4979] AbstractFFTs v1.3.1
  [1520ce14] AbstractTrees v0.4.4
  [79e6a3ab] Adapt v3.6.2
  [a9b6321e] Atomix v0.1.0
  [ab4f0b2a] BFloat16s v0.4.2
  [fa961155] CEnum v0.4.2
  [052768ef] CUDA v4.3.2
  [1af6417a] CUDA_Runtime_Discovery v0.2.2
  [da1fd8a2] CodeTracking v1.3.1
  [9a962f9c] DataAPI v1.15.0
  [e2d170a0] DataValueInterfaces v1.0.0
  [ffbed154] DocStringExtensions v0.9.3
  [e2ba6199] ExprTools v0.1.9
  [0c68f7d7] GPUArrays v8.8.1
  [46192b85] GPUArraysCore v0.1.5
⌅ [61eb1bfa] GPUCompiler v0.20.3
  [eafb193a] Highlights v0.5.2
  [92d709cd] IrrationalConstants v0.2.2
  [82899510] IteratorInterfaceExtensions v1.0.0
  [692b3bcd] JLLWrappers v1.4.1
  [0f8b85d8] JSON3 v1.13.1
  [63c18a36] KernelAbstractions v0.9.6
⌅ [929cbde3] LLVM v5.2.0
  [2ab3a3ac] LogExpFunctions v0.3.24
  [1914dd2f] MacroTools v0.5.10
  [1c23619d] MyterialColors v0.3.0
  [bac558e1] OrderedCollections v1.6.0
  [d96e819e] Parameters v0.12.3
  [69de0a69] Parsers v2.7.1
  [aea7be01] PrecompileTools v1.1.2
  [21216c6a] Preferences v1.4.0
  [33c8b6b6] ProgressLogging v0.1.4
  [74087812] Random123 v1.6.1
  [e6cf234a] RandomNumbers v1.5.3
  [189a3867] Reexport v1.2.2
  [ae029012] Requires v1.3.0
  [6c6a2e73] Scratch v1.2.0
  [a0a7dd2c] SparseMatricesCSR v0.6.7
  [276daf66] SpecialFunctions v2.3.0
  [90137ffa] StaticArrays v1.5.26
  [1e83bf80] StaticArraysCore v1.4.0
  [856f2bd8] StructTypes v1.10.0
  [3783bdb8] TableTraits v1.0.1
  [bd369af6] Tables v1.10.1
  [22787eb5] Term v2.0.4
  [a759f4b9] TimerOutputs v0.5.23
  [3a884ed6] UnPack v1.0.2
  [1cfade01] UnicodeFun v0.4.1
  [013be700] UnsafeAtomics v0.2.1
⌃ [d80eeb9a] UnsafeAtomicsLLVM v0.1.2
  [009559a3] XGBoost v2.3.0
  [4ee394cb] CUDA_Driver_jll v0.5.0+1
  [76a88914] CUDA_Runtime_jll v0.6.0+0
  [dad2f222] LLVMExtra_jll v0.0.22+0
  [1d63c593] LLVMOpenMP_jll v15.0.4+0
  [efe28fd5] OpenSpecFun_jll v0.5.5+0
⌃ [a5c6f535] XGBoost_jll v1.7.4+0
  [0dad84c5] ArgTools v1.1.1 `@stdlib/ArgTools`
  [56f22d72] Artifacts `@stdlib/Artifacts`
  [2a0f44e3] Base64 `@stdlib/Base64`
  [ade2ca70] Dates `@stdlib/Dates`
  [f43a241f] Downloads v1.6.0 `@stdlib/Downloads`
  [7b1f6079] FileWatching `@stdlib/FileWatching`
  [b77e0a4c] InteractiveUtils `@stdlib/InteractiveUtils`
  [4af54fe1] LazyArtifacts `@stdlib/LazyArtifacts`
  [b27032c2] LibCURL v0.6.3 `@stdlib/LibCURL`
  [76f85450] LibGit2 `@stdlib/LibGit2`
  [8f399da3] Libdl `@stdlib/Libdl`
  [37e2e46d] LinearAlgebra `@stdlib/LinearAlgebra`
  [56ddb016] Logging `@stdlib/Logging`
  [d6f4376e] Markdown `@stdlib/Markdown`
  [a63ad114] Mmap `@stdlib/Mmap`
  [ca575930] NetworkOptions v1.2.0 `@stdlib/NetworkOptions`
  [44cfe95a] Pkg v1.9.0 `@stdlib/Pkg`
  [de0858da] Printf `@stdlib/Printf`
  [3fa0cd96] REPL `@stdlib/REPL`
  [9a3f8284] Random `@stdlib/Random`
  [ea8e919c] SHA v0.7.0 `@stdlib/SHA`
  [9e88b42a] Serialization `@stdlib/Serialization`
  [6462fe0b] Sockets `@stdlib/Sockets`
  [2f01184e] SparseArrays `@stdlib/SparseArrays`
  [10745b16] Statistics v1.9.0 `@stdlib/Statistics`
  [4607b0f0] SuiteSparse `@stdlib/SuiteSparse`
  [fa267f1f] TOML v1.0.3 `@stdlib/TOML`
  [a4e569a6] Tar v1.10.0 `@stdlib/Tar`
  [8dfed614] Test `@stdlib/Test`
  [cf7118a7] UUIDs `@stdlib/UUIDs`
  [4ec0a83e] Unicode `@stdlib/Unicode`
  [e66e0078] CompilerSupportLibraries_jll v1.0.2+0 `@stdlib/CompilerSupportLibraries_jll`
  [deac9b47] LibCURL_jll v7.84.0+0 `@stdlib/LibCURL_jll`
  [29816b5a] LibSSH2_jll v1.10.2+0 `@stdlib/LibSSH2_jll`
  [c8ffd9c3] MbedTLS_jll v2.28.2+0 `@stdlib/MbedTLS_jll`
  [14a3606d] MozillaCACerts_jll v2022.10.11 `@stdlib/MozillaCACerts_jll`
  [4536629a] OpenBLAS_jll v0.3.21+4 `@stdlib/OpenBLAS_jll`
  [05823500] OpenLibm_jll v0.8.1+0 `@stdlib/OpenLibm_jll`
  [bea87d4a] SuiteSparse_jll v5.10.1+6 `@stdlib/SuiteSparse_jll`
  [83775a58] Zlib_jll v1.2.13+0 `@stdlib/Zlib_jll`
  [8e850b90] libblastrampoline_jll v5.8.0+0 `@stdlib/libblastrampoline_jll`
  [8e850ede] nghttp2_jll v1.48.0+0 `@stdlib/nghttp2_jll`
  [3f19e933] p7zip_jll v17.4.0+0 `@stdlib/p7zip_jll`
        Info Packages marked with ⌃ and ⌅ have new versions available, but those with ⌅ are restricted by compatibility constraints from upgrading.
     Testing Running tests...
ERROR: Package XGBoost errored during testing (exit code: 3221226356)
tylerjthomas9 commented 1 year ago

Yes, that is expected on Windows for Julia v1.9.1. You need to use the nightly Julia build to use XGBoost on Windows. Hopefully the patch that fixes should be backported for v1.9.2.

montyvesselinov commented 1 year ago

I guess I will wait for 1.9.2. Can you raise the issue so that the patch gets in 1.9.2?

tylerjthomas9 commented 1 year ago

Julia v1.9.2 testing period started a few days ago. I just tested XGBoost, and it runs without any issues. Here is the discourse post about v1.9.2: https://discourse.julialang.org/t/julia-1-9-2-testing-period/101012

ablaom commented 1 year ago

Yahoo!

tylerjthomas9 commented 1 year ago

We should be good to go. All the tests are now green thanks to Julia v1.9.2

https://github.com/dmlc/XGBoost.jl/pull/184

montyvesselinov commented 1 year ago

Excellent! I will check. Do i still need the old version of XGBoost_jll?

-monty Velimir V Vesselinov Co-Owner | CTO | CSO @ EnviTrace http://EnviTrace.com +1 (505) 473 4150 | @.***

Machine Learning | Artificial Intelligence | Earth Sciences monty.gitlab.io | SmartTensors http://smarttensors.com/ | EnviTrace http://envitrace.com/

On Wed, Jul 5, 2023 at 3:59 PM Tyler Thomas @.***> wrote:

We should be good to go. All the tests are now green thanks to Julia v1.9.2

184 https://github.com/dmlc/XGBoost.jl/pull/184

— Reply to this email directly, view it on GitHub https://github.com/dmlc/XGBoost.jl/issues/183#issuecomment-1622584823, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABK7C6A3WALTW7BYTDQYR63XOXPV3ANCNFSM6AAAAAAZSQHBNM . You are receiving this because you authored the thread.Message ID: @.***>

tylerjthomas9 commented 1 year ago

Nope, the latest version, XGBoost_jll@1.7.5, works. The CUDA tag issue has been fixed.

montyvesselinov commented 1 year ago

I just tested with 1.9.2. one of the tests failed. See below.

(@v1.9) pkg> test XGBoost
     Testing XGBoost
      Status `C:\Users\monty\AppData\Local\Temp\jl_0Oofn6\Project.toml`
  [1520ce14] AbstractTrees v0.4.4
  [fa961155] CEnum v0.4.2
  [052768ef] CUDA v4.4.0
  [0f8b85d8] JSON3 v1.13.1
  [bac558e1] OrderedCollections v1.6.0
  [a0a7dd2c] SparseMatricesCSR v0.6.7
  [bd369af6] Tables v1.10.1
  [22787eb5] Term v2.0.5
  [009559a3] XGBoost v2.3.0
  [a5c6f535] XGBoost_jll v1.7.5+2
  [37e2e46d] LinearAlgebra `@stdlib/LinearAlgebra`
  [9a3f8284] Random `@stdlib/Random`
  [2f01184e] SparseArrays `@stdlib/SparseArrays`
  [10745b16] Statistics v1.9.0 `@stdlib/Statistics`
  [8dfed614] Test `@stdlib/Test`
      Status `C:\Users\monty\AppData\Local\Temp\jl_0Oofn6\Manifest.toml`
  [621f4979] AbstractFFTs v1.4.0
  [1520ce14] AbstractTrees v0.4.4
  [79e6a3ab] Adapt v3.6.2
  [a9b6321e] Atomix v0.1.0
  [ab4f0b2a] BFloat16s v0.4.2
  [fa961155] CEnum v0.4.2
  [052768ef] CUDA v4.4.0
  [1af6417a] CUDA_Runtime_Discovery v0.2.2
  [da1fd8a2] CodeTracking v1.3.1
  [9a962f9c] DataAPI v1.15.0
  [e2d170a0] DataValueInterfaces v1.0.0
  [ffbed154] DocStringExtensions v0.9.3
  [e2ba6199] ExprTools v0.1.9
  [0c68f7d7] GPUArrays v8.8.1
  [46192b85] GPUArraysCore v0.1.5
  [61eb1bfa] GPUCompiler v0.21.3
  [eafb193a] Highlights v0.5.2
  [92d709cd] IrrationalConstants v0.2.2
  [82899510] IteratorInterfaceExtensions v1.0.0
  [692b3bcd] JLLWrappers v1.4.1
  [0f8b85d8] JSON3 v1.13.1
  [63c18a36] KernelAbstractions v0.9.6
  [929cbde3] LLVM v6.0.1
  [2ab3a3ac] LogExpFunctions v0.3.24
  [1914dd2f] MacroTools v0.5.10
  [1c23619d] MyterialColors v0.3.0
  [bac558e1] OrderedCollections v1.6.0
  [d96e819e] Parameters v0.12.3
  [69de0a69] Parsers v2.7.1
  [aea7be01] PrecompileTools v1.1.2
  [21216c6a] Preferences v1.4.0
  [33c8b6b6] ProgressLogging v0.1.4
  [74087812] Random123 v1.6.1
  [e6cf234a] RandomNumbers v1.5.3
  [189a3867] Reexport v1.2.2
  [ae029012] Requires v1.3.0
  [6c6a2e73] Scratch v1.2.0
  [a0a7dd2c] SparseMatricesCSR v0.6.7
  [276daf66] SpecialFunctions v2.3.0
  [90137ffa] StaticArrays v1.6.0
  [1e83bf80] StaticArraysCore v1.4.0
  [856f2bd8] StructTypes v1.10.0
  [3783bdb8] TableTraits v1.0.1
  [bd369af6] Tables v1.10.1
  [22787eb5] Term v2.0.5
  [a759f4b9] TimerOutputs v0.5.23
  [3a884ed6] UnPack v1.0.2
  [1cfade01] UnicodeFun v0.4.1
  [013be700] UnsafeAtomics v0.2.1
  [d80eeb9a] UnsafeAtomicsLLVM v0.1.3
  [009559a3] XGBoost v2.3.0
  [4ee394cb] CUDA_Driver_jll v0.5.0+1
  [76a88914] CUDA_Runtime_jll v0.6.0+0
⌅ [dad2f222] LLVMExtra_jll v0.0.22+0
  [1d63c593] LLVMOpenMP_jll v15.0.4+0
  [efe28fd5] OpenSpecFun_jll v0.5.5+0
  [a5c6f535] XGBoost_jll v1.7.5+2
  [0dad84c5] ArgTools v1.1.1 `@stdlib/ArgTools`
  [56f22d72] Artifacts `@stdlib/Artifacts`
  [2a0f44e3] Base64 `@stdlib/Base64`
  [ade2ca70] Dates `@stdlib/Dates`
  [f43a241f] Downloads v1.6.0 `@stdlib/Downloads`
  [7b1f6079] FileWatching `@stdlib/FileWatching`
  [b77e0a4c] InteractiveUtils `@stdlib/InteractiveUtils`
  [4af54fe1] LazyArtifacts `@stdlib/LazyArtifacts`
  [b27032c2] LibCURL v0.6.3 `@stdlib/LibCURL`
  [76f85450] LibGit2 `@stdlib/LibGit2`
  [8f399da3] Libdl `@stdlib/Libdl`
  [37e2e46d] LinearAlgebra `@stdlib/LinearAlgebra`
  [56ddb016] Logging `@stdlib/Logging`
  [d6f4376e] Markdown `@stdlib/Markdown`
  [a63ad114] Mmap `@stdlib/Mmap`
  [ca575930] NetworkOptions v1.2.0 `@stdlib/NetworkOptions`
  [44cfe95a] Pkg v1.9.2 `@stdlib/Pkg`
  [de0858da] Printf `@stdlib/Printf`
  [3fa0cd96] REPL `@stdlib/REPL`
  [9a3f8284] Random `@stdlib/Random`
  [ea8e919c] SHA v0.7.0 `@stdlib/SHA`
  [9e88b42a] Serialization `@stdlib/Serialization`
  [6462fe0b] Sockets `@stdlib/Sockets`
  [2f01184e] SparseArrays `@stdlib/SparseArrays`
  [10745b16] Statistics v1.9.0 `@stdlib/Statistics`
  [4607b0f0] SuiteSparse `@stdlib/SuiteSparse`
  [fa267f1f] TOML v1.0.3 `@stdlib/TOML`
  [a4e569a6] Tar v1.10.0 `@stdlib/Tar`
  [8dfed614] Test `@stdlib/Test`
  [cf7118a7] UUIDs `@stdlib/UUIDs`
  [4ec0a83e] Unicode `@stdlib/Unicode`
  [e66e0078] CompilerSupportLibraries_jll v1.0.5+0 `@stdlib/CompilerSupportLibraries_jll`
  [deac9b47] LibCURL_jll v7.84.0+0 `@stdlib/LibCURL_jll`
  [29816b5a] LibSSH2_jll v1.10.2+0 `@stdlib/LibSSH2_jll`
  [c8ffd9c3] MbedTLS_jll v2.28.2+0 `@stdlib/MbedTLS_jll`
  [14a3606d] MozillaCACerts_jll v2022.10.11 `@stdlib/MozillaCACerts_jll`
  [4536629a] OpenBLAS_jll v0.3.21+4 `@stdlib/OpenBLAS_jll`
  [05823500] OpenLibm_jll v0.8.1+0 `@stdlib/OpenLibm_jll`
  [bea87d4a] SuiteSparse_jll v5.10.1+6 `@stdlib/SuiteSparse_jll`
  [83775a58] Zlib_jll v1.2.13+0 `@stdlib/Zlib_jll`
  [8e850b90] libblastrampoline_jll v5.8.0+0 `@stdlib/libblastrampoline_jll`
  [8e850ede] nghttp2_jll v1.48.0+0 `@stdlib/nghttp2_jll`
  [3f19e933] p7zip_jll v17.4.0+0 `@stdlib/p7zip_jll`
        Info Packages marked with ⌅ have new versions available but compatibility constraints restrict them from upgrading.
Precompiling project...
  62 dependencies successfully precompiled in 146 seconds. 7 already precompiled.
     Testing Running tests...
cuda: Error During Test at C:\Users\monty\.julia\packages\XGBoost\sa5Xe\test\runtests.jl:207
  Got exception outside of a @test
  XGBoostError: (caller: XGDMatrixCreateFromCudaArrayInterface)
  [09:49:02] /workspace/srcdir/xgboost/src/c_api/../common/common.h:239: XGBoost version not compiled with GPU support.
  Stacktrace:
    [1] xgbcall(::Function, ::String, ::Vararg{Any})
      @ XGBoost.Lib C:\Users\monty\.julia\packages\XGBoost\sa5Xe\src\Lib.jl:28
    [2] _dmatrix(x::CUDA.CuArray{Float32, 2, CUDA.Mem.DeviceBuffer}; missing_value::Float32, kw::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
      @ XGBoostCUDAExt C:\Users\monty\.julia\packages\XGBoost\sa5Xe\ext\XGBoostCUDAExt.jl:12
    [3] _dmatrix
      @ C:\Users\monty\.julia\packages\XGBoost\sa5Xe\ext\XGBoostCUDAExt.jl:7 [inlined]
    [4] #DMatrix#10
      @ C:\Users\monty\.julia\packages\XGBoost\sa5Xe\src\dmatrix.jl:189 [inlined]
    [5] DMatrix(x::CUDA.CuArray{Float32, 2, CUDA.Mem.DeviceBuffer})
      @ XGBoost C:\Users\monty\.julia\packages\XGBoost\sa5Xe\src\dmatrix.jl:187
    [6] macro expansion
      @ C:\Users\monty\.julia\packages\XGBoost\sa5Xe\test\runtests.jl:209 [inlined]
    [7] macro expansion
      @ C:\Users\monty\.julia\juliaup\julia-1.9.2+0.x64.w64.mingw32\share\julia\stdlib\v1.9\Test\src\Test.jl:1498 [inlined]
    [8] macro expansion
      @ C:\Users\monty\.julia\packages\XGBoost\sa5Xe\test\runtests.jl:208 [inlined]
    [9] macro expansion
      @ C:\Users\monty\.julia\juliaup\julia-1.9.2+0.x64.w64.mingw32\share\julia\stdlib\v1.9\Test\src\Test.jl:1498 [inlined]
   [10] top-level scope
      @ C:\Users\monty\.julia\packages\XGBoost\sa5Xe\test\runtests.jl:12
   [11] include(fname::String)
      @ Base.MainInclude .\client.jl:478
   [12] top-level scope
      @ none:6
   [13] eval
      @ .\boot.jl:370 [inlined]
   [14] exec_options(opts::Base.JLOptions)
      @ Base .\client.jl:280
   [15] _start()
      @ Base .\client.jl:522
Test Summary:                 | Pass  Error  Total   Time
XGBoost                       |   45      1     46  34.1s
  DMatrix Constructors        |   21            21   9.0s
  DMatrix IO                  |    6             6   0.5s
  Agaricus training           |    6             6   2.7s
  Blobs training              |    1             1   1.1s
  Feature importance          |    5             5   7.3s
  Booster Save/Load/Serialize |    6             6   0.3s
  cuda                        |           1      1  13.2s
ERROR: LoadError: Some tests did not pass: 45 passed, 0 failed, 1 errored, 0 broken.
in expression starting at C:\Users\monty\.julia\packages\XGBoost\sa5Xe\test\runtests.jl:9
ERROR: Package XGBoost errored during testing
tylerjthomas9 commented 1 year ago

This is expected. NVCC does not support cross-compiling, so we cannot build XGBoost+CUDA binaries on Windows. We might want to add logic to prevent attempting CUDA tests on platforms where we can't build the CUDA binaries.

montyvesselinov commented 1 year ago

Thank you!