forked from bitsandbytes-foundation/bitsandbytes
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added batch compile helper. Updated documentation.
- Loading branch information
Showing
3 changed files
with
43 additions
and
0 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 |
---|---|---|
|
@@ -9,6 +9,7 @@ __pycache__/ | |
# Distribution / packaging | ||
.Python | ||
build/ | ||
build_*/ | ||
develop-eggs/ | ||
dist/ | ||
downloads/ | ||
|
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,37 @@ | ||
# 11.6 | ||
#Remove-Item -Recurse -Force ./build | ||
Remove-Item -Recurse -Force ./build_11.6_0 | ||
Remove-Item -Recurse -Force ./build_11.6_1 | ||
Remove-Item -Recurse -Force ./build_11.7_0 | ||
Remove-Item -Recurse -Force ./build_11.7_1 | ||
|
||
$Funcs = { | ||
function configure([string]$cuda_version, [string]$no_cuda_blast) | ||
{ | ||
cmake -S . -B "./build_${cuda_version}_${no_cuda_blast}" -G "Visual Studio 17 2022" -T "cuda=${cuda_version}" -D "NO_CUBLASLT=${no_cuda_blast}" | ||
} | ||
function build([string]$cuda_version, [string]$no_cuda_blast) | ||
{ | ||
cmake --build "./build_${cuda_version}_${no_cuda_blast}" --target libbitsandbytes_cuda --config Release | ||
} | ||
function build_with_cpu([string]$cuda_version, [string]$no_cuda_blast) | ||
{ | ||
cmake --build "./build_${cuda_version}_${no_cuda_blast}" --target libbitsandbytes_cuda --config Release | ||
cmake --build "./build_${cuda_version}_${no_cuda_blast}" --target libbitsandbytes_cpu --config Release | ||
} | ||
} | ||
|
||
|
||
$j1 = Start-Job -ScriptBlock { configure "11.6" "0"; build_with_cpu "11.6" "0"} -InitializationScript $Funcs | ||
$j2 = Start-Job -ScriptBlock { configure "11.6" "1"; build "11.6" "1" } -InitializationScript $Funcs | ||
$j3 = Start-Job -ScriptBlock { configure "11.7" "0"; build "11.7" "0" } -InitializationScript $Funcs | ||
$j4 = Start-Job -ScriptBlock { configure "11.7" "1"; build "11.7" "1" } -InitializationScript $Funcs | ||
|
||
Get-Job | Wait-Job | ||
|
||
Receive-Job $j1 | ||
Receive-Job $j2 | ||
Receive-Job $j3 | ||
Receive-Job $j4 | ||
|
||
|
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