SourceryTools / nvptx-tools

nvptx-tools: a collection of tools for use with nvptx-none GCC toolchains.
https://gcc.gnu.org/wiki/nvptx
46 stars 10 forks source link

nvptx-tools: a collection of tools for use with nvptx-none GCC toolchains.

Additionally, the following symlinks are installed:

Testsuite

$ make check

In addition to the testsuite of the included libiberty support library ('check-libiberty'), this tests the nvptx-tools using a lit-based testsuite ('check-lit'); see 'test/README'.

DejaGnu Board File

There is a DejaGnu board file included, nvptx-none-run.exp, which can be used as follows with the GCC testsuite:

$ make check DEJAGNU=[build-nvptx-tools]/dejagnu.exp RUNTESTFLAGS='--target_board=nvptx-none-run' [...]

By default, this will use nvptx-none-run found in $PATH, but that can be overridden by setting the NVPTX_NONE_RUN environment variable.

By default, nvptx-none-run invocation is serialized by means of a lock file. The default /tmp/gpu.lock may be overridden by setting the NVPTX_NONE_EXECUTION_LOCK_FILE environment variable. Set it to the empty string to disable locking.

Nvidia CUDA/PTX Dependency

The nvptx-tools are used for interfacing nvptx-none GCC toolchains with Nvidia tools and GPUs via Nvidia CUDA/PTX.

Individual nvptx-tools depend on CUDA/PTX as follows:

Support for sm_50 was introduced with PTX ISA 4.0, CUDA 6.0, driver r331, and remains supported at this time (CUDA 12.2.2).

Certain testcases for the nvptx-tools have dependencies as follows:

With reduced functionality as indicated, it's possible to build, test, and use the nvptx-tools without a CUDA installation.

Report Issues

Report issues to https://github.com/SourceryTools/nvptx-tools/issues.