587 Commits

Author SHA1 Message Date
Tonu Naks
74bfa151cf Merge branch 'topic/cuda-toolbox' into 'master'
Fix error handling

See merge request eng/toolchain/cuda!162
2023-12-04 11:19:32 +00:00
Tonu Naks
838805e436 Fix error handling
eng/toolchain/cuda#29
2023-12-04 11:17:50 +00:00
Ronan Desplanques
f98e7ddb54 Merge branch 'fix-typo' into 'master'
Fix typo in binding generation script

See merge request eng/toolchain/cuda!161
2023-12-04 11:13:04 +00:00
Ronan Desplanques
8d1a791cd8 Fix typo in binding generation script
The typo's only consequence is to add an extra line to the logs shown
when running setup.sh.
2023-12-04 10:32:25 +01:00
Tonu Naks
632b4ddf84 Merge branch 'topic/clean' into 'master'
Provide an option for cleaning old build

See merge request eng/toolchain/cuda!159
2023-11-27 13:58:44 +00:00
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
Tonu Naks
6cf209ed59 Merge branch 'topic/readme' into 'master'
Remove obsolete content from readme

See merge request eng/toolchain/cuda!160
2023-11-27 13:46:42 +00:00
Tonu Naks
df7a963530 Remove obsolete content from readme
Some details in the readme were obsolete, some referring
to tools that are availbale for internal use of adacore only.
Installation manual now contains suffcient details,
no need to duplicate the same information here.

Follow-up of eng/toolchain/cuda#41
2023-11-27 14:00:59 +02:00
Tonu Naks
cc7c46452b Merge branch 'topic/pycross-support' into 'master'
Add support for pycross

See merge request eng/toolchain/cuda!158
2023-11-24 17:39:23 +00:00
Tonu Naks
547b3c3fc2 Add support for pycross
This commit enables on-board testing. To launch test with cross compilation
and execution on host:

* expose the environment (unless cuda toolbox is installed
  in its standard location at /usr/local/cuda)
export CUDA_ROOT=<location of cuda root>

* make sure that $CUDA_ROOT/targets/aarch64-linux contains
  copy of the same folder on the board

* load the ssh keys necessary for accessing the board

* launch tests

  anod test gnat-cuda --target=aarch64-linux,,<board hostname or IP>

eng/toolchain/cuda#29
2023-11-24 17:37:43 +00:00
Ronan Desplanques
e32e2ecae2 Merge branch 'document-install-constraint' into 'master'
Document CUDA installation restriction

Closes #20

See merge request eng/toolchain/cuda!157
2023-11-22 11:42:45 +00:00
Ronan Desplanques
c97c4b6080 Document CUDA installation restriction
We don't support CUDA installations in /usr because the way we set
PATH then makes the system compiler in `/usr/bin/gcc`, which often
does not support Ada, shadow the compiler driver from GNAT. This
is also true for other directories that contain a installation of gcc.
This patch documents this restriction.
2023-11-22 09:41:23 +00:00
Ronan Desplanques
9cdad1b8ea Merge branch 'binding-hotfix' into 'master'
Applies temporary binding generation fix

Closes #38

See merge request eng/toolchain/cuda!153
2023-11-21 09:19:54 +00:00
Ronan Desplanques
625a2b945a Apply temporary binding generation fix
This patch applies a temporary workaround to be able to use gnat-cuda
with CUDA 12.3.
2023-11-21 09:15:59 +00:00
Ronan Desplanques
fe66ecaa6c Merge branch 'remove-native-requirement' into 'master'
Support generating binding with cross toolchain

Closes #30

See merge request eng/toolchain/cuda!156
2023-11-21 09:14:30 +00:00
Ronan Desplanques
d7dcacadb8 Support generating binding with cross toolchain
This patch adds some machinery to the build system to make it
possible to leverage a cross compiler for binding generation. It
also updates the documentation to remove the requirement of a native
compiler in the cross-compilation case.
2023-11-17 15:17:10 +01:00
Tonu Naks
6601c77e9f Merge branch 'topic/cuda_root_doc' into 'master'
Add instructions for using CUDA_ROOT

See merge request eng/toolchain/cuda!154
2023-11-16 13:40:12 +00:00
Tonu Naks
d6d1b2eff8 Add instructions for using CUDA_ROOT
Rename cuda_host to CUDA_HOST in order to
comply with common environment variable naming
conventions.

Solves eng/toolchain/cuda#32
2023-11-16 13:39:45 +00:00
Ronan Desplanques
9498daa493 Merge branch 'remove-sphinx-conf-workaround' into 'master'
Remove workaround that's no longer needed

See merge request eng/toolchain/cuda!155
2023-11-16 11:52:56 +00:00
Ronan Desplanques
8fec1233da Remove workaround that's no longer needed
Before this patch, the configuration file for the Sphinx
documentation had a workaround for an issue that's no longer present
with the version of Sphinx that comes with anod. This patch removes
that workaround.

The fact that the issue has been fixed upstream can be checked by
browsing the following GitHub issue:

https://github.com/readthedocs/readthedocs.org/issues/2569
2023-11-13 12:22:11 +01:00
Ronan Desplanques
ce4f5fcb4b Merge branch 'topic/clarify-makefile' into 'master'
Remove command-line switch ignored by GPRbuild

See merge request eng/toolchain/cuda!141
2023-11-09 08:57:12 +00:00
Ronan Desplanques
8d4142eb43 Remove command-line switch ignored by GPRbuild
The samples use the versions of cuda_api_host.gpr and cuda_api_device.gpr
that go through GPRinstall. The installing process removes the external
variable cuda_host, so setting it with the -X switch in Makefile.build
did not have an effect and could be misleading.
2023-11-09 08:55:49 +00:00
Ronan Desplanques
3797ca9ef7 Merge branch 'improve-CUDA_ROOT-support' into 'master'
Take CUDA_ROOT into account in GPR project file

See merge request eng/toolchain/cuda!149
2023-11-09 08:54:19 +00:00
Ronan Desplanques
a7a920f0d1 Take CUDA_ROOT into account in GPR project file
cuda_api_host.gpr was the only place where support for the CUDA_ROOT
environment variable was missing. This patch adds that support, and
with that it becomes possible to build the examples with a CUDA installation
that does not live in /usr/local/cuda.

Issue: eng/toolchain/cuda#32
2023-11-08 14:57:29 +00:00
Ronan Desplanques
7a1951d931 Merge branch 'trim-env-script' into 'master'
Minor cleanups

See merge request eng/toolchain/cuda!150
2023-11-06 10:02:49 +00:00