-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f73bdeb
commit 02a0575
Showing
11 changed files
with
63 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
recipes: | ||
- name : xgboost-1.7 | ||
path : xgboost-1.7/recipe | ||
- name : xgboost-2.0 | ||
path : xgboost-2.0/recipe | ||
|
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
xgboost-1.7/recipe/0001-conda-Unbundle-libxgboost.-dll-dylib-so.patch
This file was deleted.
Oops, something went wrong.
40 changes: 0 additions & 40 deletions
40
xgboost-1.7/recipe/0004-Use-central-cuda-capabilities.patch
This file was deleted.
Oops, something went wrong.
26 changes: 26 additions & 0 deletions
26
xgboost-2.0/recipe/0001-Use-central-cuda-capabilities.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
From f93655fdf7ea1bc125c6e943399c7ee7ecbb5d3c Mon Sep 17 00:00:00 2001 | ||
From: Aman-Surkar <aman_surkar@persistent.com> | ||
Date: Mon, 8 Jan 2024 12:59:09 +0000 | ||
Subject: [PATCH] Use-central-cuda-capabilities | ||
|
||
--- | ||
cmake/Utils.cmake | 3 ++- | ||
1 file changed, 2 insertions(+), 1 deletion(-) | ||
|
||
diff --git a/cmake/Utils.cmake b/cmake/Utils.cmake | ||
index 08050205c..700bf86b0 100644 | ||
--- a/cmake/Utils.cmake | ||
+++ b/cmake/Utils.cmake | ||
@@ -91,7 +91,8 @@ function(format_gencode_flags flags out) | ||
# Set up architecture flags | ||
if(NOT flags) | ||
if (CUDA_VERSION VERSION_GREATER_EQUAL "11.8") | ||
- set(flags "50;60;70;80;90") | ||
+ string(REPLACE "," ";" tmpflags "$ENV{cuda_levels}") | ||
+ string(REPLACE "." "" flags "${tmpflags}") | ||
elseif (CUDA_VERSION VERSION_GREATER_EQUAL "11.0") | ||
set(flags "50;60;70;80") | ||
elseif(CUDA_VERSION VERSION_GREATER_EQUAL "10.0") | ||
-- | ||
2.40.1 | ||
|
27 changes: 27 additions & 0 deletions
27
xgboost-2.0/recipe/0001-conda-Unbundle-libxgboost.-dll-dylib-so.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
From fe9487352675c8b0be26f30be9e9e2af0c103fab Mon Sep 17 00:00:00 2001 | ||
From: Aman-Surkar <aman_surkar@persistent.com> | ||
Date: Mon, 8 Jan 2024 13:00:50 +0000 | ||
Subject: [PATCH] conda-Unbundle-libxgboost.-dll-dylib-so | ||
|
||
--- | ||
python-package/xgboost/libpath.py | 4 ++++ | ||
1 file changed, 4 insertions(+) | ||
|
||
diff --git a/python-package/xgboost/libpath.py b/python-package/xgboost/libpath.py | ||
index 58c78df09..bb682b929 100644 | ||
--- a/python-package/xgboost/libpath.py | ||
+++ b/python-package/xgboost/libpath.py | ||
@@ -31,6 +31,10 @@ def find_lib_path() -> List[str]: | ||
] | ||
|
||
if sys.platform == "win32": | ||
+ dll_path = [os.path.join(sys.prefix, 'Library', 'mingw-w64', 'bin')] | ||
+ else: | ||
+ dll_path = [os.path.join(sys.prefix, 'lib')] | ||
+ if sys.platform == 'win32': | ||
# On Windows, Conda may install libs in different paths | ||
dll_path.extend( | ||
[ | ||
-- | ||
2.40.1 | ||
|
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.