Skip to content

Commit 02db4ae

Browse files
authored
Added icx and ifx builds, removed extra newlines in Windows components on gh-pages (#42)
1 parent f066348 commit 02db4ae

File tree

3 files changed

+16
-7
lines changed

3 files changed

+16
-7
lines changed

.github/workflows/list_components.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
name: list_components
66

77
on:
8+
push: {}
9+
workflow_dispatch: {}
810
schedule:
911
- cron: '0 0 * * *'
1012

@@ -185,8 +187,8 @@ jobs:
185187
run: python -m pip install --quiet -r requirements.txt
186188
- name: Build doc
187189
run: |
188-
find source/${{ github.workflow }} -type f -maxdepth 1 ! -name "*apt*" ! -name "*yum*" -exec sed -i -e 1,5d {} \;
189-
find source/${{ github.workflow }} -type f -maxdepth 1 -name "*windows*" -exec sed -i -e 1,2d {} \;
190+
find source/${{ github.workflow }} -maxdepth 1 -type f ! -name "*apt*" ! -name "*yum*" -exec sed -i -e 1,5d {} \;
191+
find source/${{ github.workflow }} -maxdepth 1 -type f -name "*windows*" -exec sed -i -e 1,2d {} \; -exec sed -i s"/\r//g" {} \;
190192
sed -i -e 1,7d source/${{ github.workflow }}/linux_yum_dnf.txt
191193
make html
192194
- name: Save built doc as artifact

scripts/build_linux.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ source /opt/intel/oneapi/compiler/"$LATEST_VERSION"/env/vars.sh
1616
case $LANGUAGE in
1717
c++)
1818
cd oneAPI-samples/DirectProgramming/C++/CompilerInfrastructure/Intrinsics
19-
make && make run
19+
make && make run && make clean && make CC='icx -msse3' && make run
2020
;;
2121
fortran)
2222
cd oneAPI-samples/DirectProgramming/Fortran/CombinationalLogic/openmp-primes
23-
make && make run
23+
make && make run && make clean && make FC=ifx && make run
2424
;;
2525
dpc++)
2626
#shellcheck disable=SC2010

scripts/build_windows.bat

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,24 @@ cd oneAPI-samples\DirectProgramming\C++\CompilerInfrastructure\Intrinsics
2727
icl -O2 src\intrin_dot_sample.cpp
2828
icl -O2 src\intrin_double_sample.cpp
2929
icl -O2 src\intrin_ftz_sample.cpp
30-
intrin_dot_sample.exe
31-
intrin_double_sample.exe
32-
intrin_ftz_sample.exe
30+
intrin_dot_sample.exe && intrin_double_sample.exe && intrin_ftz_sample.exe
3331
set RESULT=%ERRORLEVEL%
32+
del intrin_dot_sample.exe intrin_double_sample.exe intrin_ftz_sample.exe
33+
icx -O2 -msse3 src\intrin_dot_sample.cpp
34+
icx -O2 -msse3 src\intrin_double_sample.cpp
35+
icx -O2 -msse3 src\intrin_ftz_sample.cpp
36+
intrin_dot_sample.exe && intrin_double_sample.exe && intrin_ftz_sample.exe
37+
set /a RESULT=%RESULT%+%ERRORLEVEL%
3438
goto exit
3539

3640
:fortran
3741
cd oneAPI-samples\DirectProgramming\Fortran\CombinationalLogic\openmp-primes
3842
ifort -O2 -fpp -qopenmp src\openmp_sample.f90
3943
openmp_sample.exe
4044
set RESULT=%ERRORLEVEL%
45+
ifx -O2 -fpp -qopenmp src\openmp_sample.f90
46+
openmp_sample.exe
47+
set /a RESULT=%RESULT%+%ERRORLEVEL%
4148
goto exit
4249

4350
:dpcpp

0 commit comments

Comments
 (0)