From d6a278e465c2dbc092844fda8d35ff5dd39508b3 Mon Sep 17 00:00:00 2001 From: igneum-labs <337424239+igneum-labs@users.noreply.github.com> Date: Thu, 8 Oct 2026 04:06:36 +0000 Subject: [PATCH] CA4 microbench job: the installed worker's NVRTC DLLs copied beside the fetched exe and the exe run from its own folder (the loader refusal the research lane named) Co-Authored-By: Claude Fable 5.1 --- tools/ca3-v4-amend/pc1-ca4-microbench.ps1 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tools/ca3-v4-amend/pc1-ca4-microbench.ps1 b/tools/ca3-v4-amend/pc1-ca4-microbench.ps1 index 09208d052..e29586fb1 100644 --- a/tools/ca3-v4-amend/pc1-ca4-microbench.ps1 +++ b/tools/ca3-v4-amend/pc1-ca4-microbench.ps1 @@ -19,6 +19,14 @@ $jobs = Split-Path $jobDir $exe = Join-Path (Join-Path $jobs 'fetch-ca4-microbench-exe-20261007') 'igneum-worker-cuda-ca4mb.exe' if (-not (Test-Path $exe)) { "RESULT error exe missing at $exe (the fetch job fetch-ca4-microbench-exe-20261007 runs first)"; Summary 'failed' @{ error = 'exe missing' }; exit 2 } "RESULT start $(Stamp) job=$jobName exe=$exe sha256=$((Get-FileHash -Algorithm SHA256 $exe).Hash.ToLower()) label=ca4-research" +# the loader (the research lane, 8 October 2026, 04:1x UTC): an exit 2 after one line is a loader line; NVRTC's two DLLs must sit beside the +# exe, and this exe was fetched into its own job folder; the installed worker's copies are copied beside it (the install folder is read, never +# written) and the exe runs from its own folder +$inst = @("$env:LOCALAPPDATA\Programs\Igneum Miner", "$env:ProgramFiles\Igneum Miner") | Where-Object { Test-Path (Join-Path $_ 'igneum-worker-cuda.exe') } | Select-Object -First 1 +$exeDir = Split-Path $exe +if ($inst) { foreach ($dll in (Get-ChildItem -Path $inst -Filter 'nvrtc*.dll' -ErrorAction SilentlyContinue)) { if (-not (Test-Path (Join-Path $exeDir $dll.Name))) { Copy-Item -LiteralPath $dll.FullName -Destination $exeDir; "RESULT dll copied beside the exe: $($dll.Name) sha256 $((Get-FileHash -Algorithm SHA256 $dll.FullName).Hash.ToLower())" } } } +"RESULT dlls beside the exe: $((Get-ChildItem -Path $exeDir -Filter '*.dll' -ErrorAction SilentlyContinue | ForEach-Object { $_.Name }) -join ', ')" +Set-Location $exeDir $smi = (Get-Command nvidia-smi -ErrorAction SilentlyContinue).Source if (-not $smi) { foreach ($p in @((Join-Path $env:ProgramFiles 'NVIDIA Corporation\NVSMI\nvidia-smi.exe'), (Join-Path $env:SystemRoot 'System32\nvidia-smi.exe'))) { if (Test-Path $p) { $smi = $p; break } } } $row = @(& $smi --query-gpu=index,name,uuid,pci.bus_id --format=csv,noheader 2>&1 | ForEach-Object { "$_" }) | Where-Object { $_ -match 'RTX 5090' } | Select-Object -First 1