Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve CUDA support #612

Merged
merged 5 commits into from Aug 2, 2021
Merged

Improve CUDA support #612

merged 5 commits into from Aug 2, 2021

Commits on Jul 29, 2021

  1. Perform CUDA --device-link.

    This allows to perform the final link with system linker.
    dot-asm committed Jul 29, 2021
    Copy the full SHA
    ad6e216 View commit details
    Browse the repository at this point in the history

Commits on Jul 30, 2021

  1. Add 'cudart' method mimicking the '--cudart' nvcc command-line option.

    Try to locate the library in standard location relative to nvcc command.
    If it fails, user is held responsible for specifying one in RUSTFLAGS.
    dot-asm committed Jul 30, 2021
    Copy the full SHA
    d1eb3c5 View commit details
    Browse the repository at this point in the history
  2. Add dummy CUDA test to cc-test.

    Execution is bound to fail without card, but the failure is ignored.
    It's rather a compile-n-link test. The test is suppressed if 'nvcc'
    is not found on the $PATH.
    dot-asm committed Jul 30, 2021
    Copy the full SHA
    f8a269a View commit details
    Browse the repository at this point in the history
  3. Add dummy CUDA CI test.

    dot-asm committed Jul 30, 2021
    Copy the full SHA
    e57b2ca View commit details
    Browse the repository at this point in the history
  4. Harmonize CUDA support with NVCC default --cudart static.

    This can interfere with current deployments in the wild, in which
    case some adjustments might be required. Most notably one might
    have to add .cuda("none") to the corresponding Builder instantiation
    to restore the original behaviour.
    dot-asm committed Jul 30, 2021
    Copy the full SHA
    1bc17a0 View commit details
    Browse the repository at this point in the history