24 lines
839 B
PowerShell
24 lines
839 B
PowerShell
|
|
# Build 768x768 for harmonic scan
|
||
|
|
Write-Host "Building 768x768..." -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 "768x768\fractal_habit_768x768.cu" -o "768x768\fractal_habit_768x768.exe" -lnvml -lcufft
|
||
|
|
echo Exit code: %errorlevel%
|
||
|
|
'@
|
||
|
|
|
||
|
|
$batchFile = "D:\openclaw-local\workspace-main\harmonic_scan\build_768x768.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: 768x768" -ForegroundColor Green
|
||
|
|
} else {
|
||
|
|
Write-Host "Build failed for 768x768" -ForegroundColor Red
|
||
|
|
$result
|
||
|
|
}
|