@@ -144,33 +144,37 @@ jobs:
144
144
- name : Running Unit Tests
145
145
run : cd build && ctest --verbose --output-on-failure -j 2
146
146
147
- # ##################################################################################################
148
- # ## NVCC targets
149
- # ##################################################################################################
150
- # nvcc:
151
- # runs-on: ubuntu-latest
152
- # container:
153
- # image: nvcr.io/nvidia/nvhpc:24.11-devel-cuda_multi-ubuntu22.04
154
- # steps:
155
- # - name: Fetch current branch
156
- # uses: actions/checkout@v4.1.1
157
- # - name: Compiling Unit Tests
158
- # run: |
159
- # mkdir build && cd build
160
- # nvc++ ../test/unit/accelerator.cu -std=c++20 -I../include -o accelerator.device.exe
161
- # nvc++ ../test/unit/accelerator.cpp -std=c++20 -I../include -o accelerator.host.exe
162
- # nvc++ ../test/unit/arch.cpp -std=c++20 -I../include -o arch.exe
163
- # nvc++ ../test/unit/compiler.cpp -std=c++20 -I../include -o compiler.exe
164
- # nvc++ ../test/unit/data_model.cpp -std=c++20 -I../include -o data_model.exe
165
- # nvc++ ../test/unit/libc.cpp -std=c++20 -I../include -o libc.exe
166
- # nvc++ ../test/unit/os.cpp -std=c++20 -I../include -o os.exe
167
- # nvc++ ../test/unit/simd.cpp -std=c++20 -I../include -o simd.exe
168
- # nvc++ ../test/unit/stdlib.cpp -std=c++20 -I../include -o stdlib.exe
169
- # - name: Running Unit Tests
170
- # run: |
171
- # cd build
172
- # ./accelerator.device.exe && ./accelerator.host.exe && ./arch.exe && ./compiler.exe && ./data_model.exe && \
173
- # ./libc.exe && ./os.exe && ./simd.exe && ./stdlib.exe
147
+ # #################################################################################################
148
+ # # CUDA targets
149
+ # #################################################################################################
150
+ nvcc :
151
+ runs-on : self-hosted
152
+ strategy :
153
+ fail-fast : false
154
+ matrix :
155
+ cfg :
156
+ - { comp: nvcc , opt: "" }
157
+ - { comp: clang++ , opt: "--cuda-gpu-arch=sm_35 -lcudart_static -L/opt/cuda/lib64/ -ldl -lrt -pthread" }
158
+ steps :
159
+ - name : Fetch current branch
160
+ uses : actions/checkout@v4.1.1
161
+ - name : Compiling Unit Tests with ${{ matrix.cfg.comp }}
162
+ run : |
163
+ mkdir build && cd build
164
+ ${{ matrix.cfg.comp }} ${{ matrix.cfg.opt }} ../test/unit/accelerator.cu -std=c++20 -I../include -o accelerator.device.exe
165
+ ${{ matrix.cfg.comp }} ${{ matrix.cfg.opt }} ../test/unit/accelerator.cpp -std=c++20 -I../include -o accelerator.host.exe
166
+ ${{ matrix.cfg.comp }} ${{ matrix.cfg.opt }} ../test/unit/arch.cpp -std=c++20 -I../include -o arch.exe
167
+ ${{ matrix.cfg.comp }} ${{ matrix.cfg.opt }} ../test/unit/compiler.cpp -std=c++20 -I../include -o compiler.exe
168
+ ${{ matrix.cfg.comp }} ${{ matrix.cfg.opt }} ../test/unit/data_model.cpp -std=c++20 -I../include -o data_model.exe
169
+ ${{ matrix.cfg.comp }} ${{ matrix.cfg.opt }} ../test/unit/libc.cpp -std=c++20 -I../include -o libc.exe
170
+ ${{ matrix.cfg.comp }} ${{ matrix.cfg.opt }} ../test/unit/os.cpp -std=c++20 -I../include -o os.exe
171
+ ${{ matrix.cfg.comp }} ${{ matrix.cfg.opt }} ../test/unit/simd.cpp -std=c++20 -I../include -o simd.exe
172
+ ${{ matrix.cfg.comp }} ${{ matrix.cfg.opt }} ../test/unit/stdlib.cpp -std=c++20 -I../include -o stdlib.exe
173
+ - name : Running Unit Tests
174
+ run : |
175
+ cd build
176
+ ./accelerator.device.exe && ./accelerator.host.exe && ./arch.exe && ./compiler.exe && ./data_model.exe && \
177
+ ./libc.exe && ./os.exe && ./simd.exe && ./stdlib.exe
174
178
175
179
# #################################################################################################
176
180
# # DPC++ Target
0 commit comments