@@ -203,19 +203,19 @@ test_cuda: cuda
203203 @if command -v nvidia-smi > /dev/null; then \
204204 echo " === Testing Advanced Algorithm Examples ===" ; \
205205 echo " 1. Reduction Algorithms..." ; \
206- . /01_reduction_algorithms_cuda || echo " ✗ Reduction algorithms failed" ; \
206+ $( BUILD_DIR ) /01_reduction_algorithms_cuda || echo " ✗ Reduction algorithms failed" ; \
207207 echo " 2. Scan (Prefix Sum)..." ; \
208- . /02_scan_prefix_sum_cuda || echo " ✗ Scan algorithms failed" ; \
208+ $( BUILD_DIR ) /02_scan_prefix_sum_cuda || echo " ✗ Scan algorithms failed" ; \
209209 echo " 3. Sorting Algorithms..." ; \
210- . /03_sorting_algorithms_cuda || echo " ✗ Sorting algorithms failed" ; \
210+ $( BUILD_DIR ) /03_sorting_algorithms_cuda || echo " ✗ Sorting algorithms failed" ; \
211211 echo " 4. Convolution/Stencil..." ; \
212- . /04_convolution_stencil_cuda || echo " ✗ Convolution failed" ; \
212+ $( BUILD_DIR ) /04_convolution_stencil_cuda || echo " ✗ Convolution failed" ; \
213213 echo " 5. Matrix Operations..." ; \
214- . /05_matrix_operations_cuda || echo " ✗ Matrix operations failed" ; \
214+ $( BUILD_DIR ) /05_matrix_operations_cuda || echo " ✗ Matrix operations failed" ; \
215215 echo " 6. Graph Algorithms..." ; \
216- . /06_graph_algorithms_cuda || echo " ✗ Graph algorithms failed" ; \
216+ $( BUILD_DIR ) /06_graph_algorithms_cuda || echo " ✗ Graph algorithms failed" ; \
217217 echo " 7. Cooperative Groups..." ; \
218- . /07_cooperative_groups_cuda || echo " ✗ Cooperative groups failed" ; \
218+ $( BUILD_DIR ) /07_cooperative_groups_cuda || echo " ✗ Cooperative groups failed" ; \
219219 echo " ✓ Module 3 CUDA tests completed" ; \
220220 else \
221221 echo " No NVIDIA GPU detected, skipping CUDA tests" ; \
@@ -226,13 +226,13 @@ test_hip: hip
226226 @if command -v rocm-smi > /dev/null || command -v nvidia-smi > /dev/null; then \
227227 echo " === Testing HIP Algorithm Examples ===" ; \
228228 echo " 1. Reduction Algorithms..." ; \
229- . /01_reduction_algorithms_hip || echo " ✗ HIP reduction algorithms failed" ; \
229+ $( BUILD_DIR ) /01_reduction_algorithms_hip || echo " ✗ HIP reduction algorithms failed" ; \
230230 echo " 2. Scan (Prefix Sum)..." ; \
231- . /02_scan_prefix_sum_hip || echo " ✗ HIP scan algorithms failed" ; \
231+ $( BUILD_DIR ) /02_scan_prefix_sum_hip || echo " ✗ HIP scan algorithms failed" ; \
232232 echo " 3. Sorting Algorithms..." ; \
233- . /03_sorting_algorithms_hip || echo " ✗ HIP sorting algorithms failed" ; \
233+ $( BUILD_DIR ) /03_sorting_algorithms_hip || echo " ✗ HIP sorting algorithms failed" ; \
234234 echo " 4. Convolution/Stencil..." ; \
235- . /04_convolution_stencil_hip || echo " ✗ HIP convolution failed" ; \
235+ $( BUILD_DIR ) /04_convolution_stencil_hip || echo " ✗ HIP convolution failed" ; \
236236 echo " ✓ Module 3 HIP tests completed" ; \
237237 else \
238238 echo " No compatible GPU detected, skipping HIP tests" ; \
0 commit comments