Skip to content

Commit b4d8059

Browse files
authored
Update build-run-icx.yml
ughh
1 parent 64cf2a9 commit b4d8059

1 file changed

Lines changed: 15 additions & 6 deletions

File tree

.github/workflows/build-run-icx.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,24 @@ jobs:
4040
Start-Process -FilePath ".\intel-oneapi-base-toolkit-2025.2.1.46.exe" -ArgumentList "-a", "--silent", "--eula", "accept" -Wait
4141
Write-Host "Intel oneAPI installation complete."
4242
43-
# Build with icx (no OpenMP yet)
43+
# Setup Intel compiler environment
44+
- name: Setup Intel oneAPI environment
45+
shell: cmd
46+
run: |
47+
call "C:\Program Files (x86)\Intel\oneAPI\setvars.bat"
48+
echo Intel oneAPI environment set up successfully.
49+
50+
# Build with icx
4451
- name: Build main.cpp with Intel ICX
45-
shell: pwsh
52+
shell: cmd
4653
run: |
47-
& "C:\\Program Files (x86)\\Intel\\oneAPI\\compiler\\latest\\windows\\bin\\icx.exe" /EHsc /O3 /std:c++17 /arch:AVX main.cpp -o main_icx.exe
54+
call "C:\Program Files (x86)\Intel\oneAPI\setvars.bat"
55+
icx /EHsc /O3 /std:c++17 /arch:AVX main.cpp -o main_icx.exe
4856
4957
# Run the executable
5058
- name: Run Intel-compiled binary
51-
shell: pwsh
59+
shell: cmd
5260
run: |
53-
Write-Host "Running Intel-compiled binary..."
54-
./main_icx.exe 1024
61+
call "C:\Program Files (x86)\Intel\oneAPI\setvars.bat"
62+
echo Running Intel-compiled binary...
63+
main_icx.exe 1024

0 commit comments

Comments
 (0)