Skip to content

Commit d31749f

Browse files
committed
Added debugging to Windows CI action script.
1 parent 57647fa commit d31749f

1 file changed

Lines changed: 22 additions & 1 deletion

File tree

.github/workflows/windows_amd64_tests.yaml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,34 @@ jobs:
3939
- name: Install Go
4040
uses: actions/setup-go@v5
4141
with:
42-
go-version: "1.25.x"
42+
go-version: "1.26.x"
43+
44+
- name: Diagnostic: Check CPU Features
45+
run: |
46+
# Check if the runner CPU actually supports AVX-512
47+
# If this returns nothing, the AVX-512 kernels will crash during DLL init
48+
wmic cpu get caption, name, numberofcores
49+
powershell -Command "Get-CimInstance Win32_Processor | Select-Object -ExpandProperty Caption"
4350
4451
- name: Test with AutoInstall CPU PJRT plugin
4552
run: |
4653
go test ./internal/tests/ -test.run=TestEndToEnd/fixed -test.v -test.count=1
4754
go test ./internal/tests/ -test.run=TestEndToEnd/fixed -test.v -test.count=1
4855
56+
- name: Diagnostic: Debug DLL Imports
57+
if: failure()
58+
run: |
59+
# Find where the DLL was installed (usually ~/AppData/Local/go-xla)
60+
DLL_PATH="${HOME}/AppData/Local/go-xla/pjrt_c_api_cpu_plugin.dll"
61+
if [ -f "$DLL_PATH" ]; then
62+
echo "Analyzing $DLL_PATH"
63+
# Use dumpbin (available on windows-latest) to see what DLLs are missing
64+
# If any DLL says "NOT FOUND", that is your culprit.
65+
dumpbin /DEPENDENTS "$DLL_PATH"
66+
else
67+
echo "DLL not found at $DLL_PATH"
68+
fi
69+
4970
- name: Install PJRT plugin
5071
run: |
5172
(cd ./cmd/pjrt_installer && go work init && go work use . '..\..' && go install .)

0 commit comments

Comments
 (0)