Skip to content

[RFC] Handle sm_* which is no longer supported by CUDA / ptxas exec check or configure check? #30

Open
@tob2

Description

@tschwinge @vries
From https://gcc.gnu.org/pipermail/gcc-patches/2022-March/591154.html

In PR97348, we ran into the problem that recent CUDA dropped support for
sm_30, which inhibited the build when building with CUDA bin in the path,
because the nvptx-tools assembler uses CUDA's ptxas to do ptx verification.
...
Deal with PR97348 in the simplest way possible: when calling the assembler for
sm_30, specify --no-verify.

This has the unfortunate effect that after fixing PR104758 by building
libraries with sm_30, the libraries are no longer verified. This can be
improved upon by:

  • adding a configure test in gcc that tests if CUDA supports sm_30, and
    if so disabling this patch
  • dealing with this in nvptx-tools somehow, either:
    • detect at ptxas execution time that it doesn't support sm_30, or
    • detect this at nvptx-tool configure time.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions