Skip to content

cuda: In tests/Makefile add a conditional check to append -Wno-deprecated-gpu-targets for Cuda Toolkit 12.8 and 12.9#488

Merged
Treece-Burgess merged 1 commit intoicl-utk-edu:masterfrom
Treece-Burgess:09-29-2025-cuda-deprecate-gpu-targets
Oct 11, 2025
Merged

cuda: In tests/Makefile add a conditional check to append -Wno-deprecated-gpu-targets for Cuda Toolkit 12.8 and 12.9#488
Treece-Burgess merged 1 commit intoicl-utk-edu:masterfrom
Treece-Burgess:09-29-2025-cuda-deprecate-gpu-targets

Conversation

@Treece-Burgess
Copy link
Contributor

@Treece-Burgess Treece-Burgess commented Sep 29, 2025

Pull Request Description

Issue/Background:
Starting at Cuda Toolkit 12.8 a compilation warning will occur for the cuda component tests:

nvcc warning : Support for offline compilation for architectures prior to '<compute/sm/lto>_75' will be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).

Note that:

  • I do not have access to Cuda Toolkit 12.9; however, from looking more into the warning I have seen other users of Cuda Toolkit 12.9 experience the compilation warning
  • This compilation warning stops at Cuda Toolkit 13 from my testing

Resolution:
This PR adds a conditional check in the cuda/tests/Makefile to append the flag -Wno-deprecated-gpu-targets if a user is using Cuda Toolkit 12.8 or Cuda Toolkit 12.9.

Testing

Testing was done on Illyad at Oregon using Cuda Toolkit 12.6.3 and Cuda Toolkit 12.8.1. Illyad has the following setup:

  • CPU: AMD EPYC 7402
  • GPU: 1 * H100
  • OS: RHEL 8.10
Cuda Toolkit Version PAPI Build Successful PAPI Utilities * Component Tests
12.6.3
12.8.1

* - Utilities ran include papi_component_avail, papi_native_avail, and papi_command_line

Author Checklist

  • Description
    Why this PR exists. Reference all relevant information, including background, issues, test failures, etc
  • Commits
    Commits are self contained and only do one thing
    Commits have a header of the form: module: short description
    Commits have a body (whenever relevant) containing a detailed description of the addressed problem and its solution
  • Tests
    The PR needs to pass all the tests

@Treece-Burgess Treece-Burgess added component-cuda PRs and Issues related to the cuda component status-ready-for-review PR is ready to be reviewed type-maintenance Update code to keep it compatible, secure, modern. labels Sep 29, 2025
@dbarry9
Copy link
Contributor

dbarry9 commented Oct 8, 2025

I am testing this pull request.

@dbarry9
Copy link
Contributor

dbarry9 commented Oct 8, 2025

I tested these changes on an NVIDIA GeForce RTX 5080 device (Blackwell architecture) with CUDA 12.9. The component tests pass or are skipped (consistent with the master branch), and the PAPI utilities function properly.

…ated-gpu-targets for Cuda Toolkit 12.8 and 12.9
@Treece-Burgess Treece-Burgess force-pushed the 09-29-2025-cuda-deprecate-gpu-targets branch from 02e7e50 to ade20ae Compare October 11, 2025 23:23
@Treece-Burgess Treece-Burgess merged commit 40c56d8 into icl-utk-edu:master Oct 11, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component-cuda PRs and Issues related to the cuda component status-ready-for-review PR is ready to be reviewed type-maintenance Update code to keep it compatible, secure, modern.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants