24 lines
839 B
PowerShell
24 lines
839 B
PowerShell
|
|
# Build 896x896 for harmonic scan
|
||
|
|
Write-Host "Building 896x896..." -ForegroundColor Yellow
|
||
|
|
|
||
|
|
$batchContent = @'
|
||
|
|
@echo off
|
||
|
|
call "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\Build\vcvars64.bat"
|
||
|
|
cd /d "D:\openclaw-local\workspace-main\harmonic_scan"
|
||
|
|
nvcc -arch=sm_89 -O3 -D_USE_MATH_DEFINES -DWIN32 "896x896\fractal_habit_896x896.cu" -o "896x896\fractal_habit_896x896.exe" -lnvml -lcufft
|
||
|
|
echo Exit code: %errorlevel%
|
||
|
|
'@
|
||
|
|
|
||
|
|
$batchFile = "D:\openclaw-local\workspace-main\harmonic_scan\build_896x896.bat"
|
||
|
|
$batchContent | Out-File -FilePath $batchFile -Encoding ASCII
|
||
|
|
|
||
|
|
$result = cmd /c ""$batchFile" 2>&1"
|
||
|
|
Remove-Item $batchFile -Force
|
||
|
|
|
||
|
|
if ($LASTEXITCODE -eq 0) {
|
||
|
|
Write-Host "Build successful: 896x896" -ForegroundColor Green
|
||
|
|
} else {
|
||
|
|
Write-Host "Build failed for 896x896" -ForegroundColor Red
|
||
|
|
$result
|
||
|
|
}
|