188 Commits

Author SHA1 Message Date
Tonu Naks
8877dea9e6 Provide an option for cleaning old build
Includes also clarifications for using the CUDA_ROOT
in the installation documentation.

Solves eng/toolchain/cuda#34
2023-11-27 13:57:24 +00:00
Ronan Desplanques
d716f753ba Remove executable permission from Makefiles 2023-11-06 10:00:28 +00:00
Tonu Naks
c2859ebae0 Translate the matrixMul example
https://github.com/NVIDIA/cuda-samples/tree/master/Samples/0_Introduction/matrixMul
2023-08-25 07:59:51 +00:00
Ronan Desplanques
8fd452e640 Add example written after asyncAPI CUDA sample
This commit adds a new example that mirrors the asyncAPI sample
from NVIDIA's cuda-samples repository. The minimal required version
of GNAT is also bumped to ensure the presence of recent storage
model fixes.
2023-05-25 14:59:24 +02:00
Ronan Desplanques
4cd3a4cbae Fix argument order in vectorAdd sample
Before this patch, the pragma CUDA_Execute in the vectorAdd sample
had its arguments in the wrong order. The resulting execution
configuration was in range for most devices, which explains why the
problem was undetected.

This patch puts the arguments of this pragma CUDA_Execute in their
expected order.
2023-04-13 14:10:29 +02:00
Ronan Desplanques
01e15930f0 Rename sample directory
Starting with version 11.6, CUDA does not come with samples in the
distribution anymore. The recommended source for samples is now
https://github.com/nvidia/cuda-samples.

In the newly recommended repository, the directory hierarchy is
different from the one that came with CUDA. The renaming that this
patch performs makes GNAT for CUDA samples mirror the CUDA samples
from https://github.com/nvidia/cuda-samples.
2023-04-04 08:26:24 +00:00
Ronan Desplanques
c2a1c7d77e Fix deallocation order in simpleStreams sample
Releasing an array with  CUDA async storage model requires accessing
the underlying stream of the model, so the stream cannot be released
before the array. This patch enforces that principle.

TN: W106-039
2023-03-31 13:41:40 +02:00
Ronan Desplanques
b10e80eb28 Reinstate aggregate initialization of device memory
Before this patch, we used a workaround in the simpleStreams example
to avoid a crash. Recent improvements in GNAT have made the
workaround unnecessary, so this patch removes it, and documents the
new minimum required version of GNAT.
2023-03-16 17:59:36 +01:00
Ronan Desplanques
7736c046e1 Comment out problematic statements
Two resource deallocation statements in the simpleStreams example
raise exceptions for an unknown reason. Until this is investigated
and fixed, comment out those statements and rely on program
termination to release resources.
2023-02-21 15:25:53 +01:00
QuentinOchem
23724d0987 Merge pull request #105 from AdaCore/stream_fixes
various example fixes
2023-01-12 12:57:52 -05:00
Quentin Ochem
11cf2f1228 fixed .gpr references in project files and added comments 2023-01-11 13:49:05 -05:00
Ronan Desplanques
887f5cfbcb Remove unused rules from example Makefiles 2023-01-11 15:38:45 +01:00
Quentin Ochem
a71bb1b261 various example fixes 2023-01-06 13:46:09 -05:00
QuentinOchem
b9955a8d47 Merge pull request #97 from AdaCore/test_exceptions
Implemented support for Ada runtime checks
2022-12-02 15:23:05 -05:00
Quentin Ochem
619f29d847 implemented support for run-time checks 2022-12-02 14:57:55 -05:00
Quentin Ochem
e852e44616 removed unecessary duplicated subprograms 2022-11-27 02:30:25 -05:00
Quentin Ochem
26501e5afc improved array definitions 2022-11-27 02:28:17 -05:00
Quentin Ochem
e238a50b08 fixed build warnings 2022-11-15 15:12:10 -05:00
Quentin Ochem
3a6ee4c389 removed unused type 2022-11-12 14:50:17 -05:00
Quentin Ochem
dbfc350879 applied pretty printing and used norm in gradients 2022-11-12 14:45:45 -05:00
ohenley
61775a44f8 fix typo 2022-11-07 12:49:20 -05:00
ohenley
d67fde37af add QOI io measurements 2022-11-07 12:44:04 -05:00
ohenley
0675d06f76 losing lena 2022-11-07 12:29:05 -05:00
ohenley
46615191fd cleanup 2022-11-04 11:25:40 -04:00
Quentin Ochem
2415352759 fixed issues when the array is smaller than scheduled threads 2022-11-02 21:55:55 -04:00