fix compile for CUDA 13#169
Merged
Merged
Conversation
Merged
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR fixes compilation issues with CUDA 13.0.0 on Ubuntu 24.04 by addressing three specific compatibility problems in the PopSift codebase.
- Removes obsolete
texture_fetch_functions.hinclude that is no longer available in CUDA 13 - Migrates from deprecated
thrust::identitytocuda::std::identityfor Thrust >= 3.0.0 - Resolves macro conflicts with NVTX functions by renaming local macro definitions
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| src/popsift/s_extrema.cu | Removes deprecated texture_fetch_functions.h include |
| src/popsift/s_filtergrid.cu | Adds Thrust version compatibility and fixes NVTX macro conflicts |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Member
|
Thanks for the PR! |
Contributor
Author
|
Great! I've removed the parts that conflict with and are overcome by #162. |
simogasp
approved these changes
Aug 29, 2025
Member
|
Merged! Thanks for your contribution! |
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR includes the changes that allow PopSift to compile on Ubuntu 24.04 with CUDA 13.0.0.
Features list
#include <texture_fetch_functions.h>. This include files is no longer included with the latest CUDA Toolkit, and appears to be unused by PopSift.thrust::identitytocuda::std::identity(required for Thrust version >= 3.0.0).Fix macro conflict withnvtxRangePop()(It looks like this fix will be overcome by First-order CUDA follow-up fix: do not use NVTX #162 or Guard calls to nvtx directly #168).Implementation remarks
Re: 'ntvxRangePushA(a)' andntvxRangePop(): The definition of these above#include <thrust/copy.h>wreaks havoc on the definition of these functions innvtx3.hppinclude indirectly viathrust/copy.h. I changed their name for this file, but another approach could be to move the#defineblow thethrustincludes. It seems like it was probably placed above thethrustincludes for a reason though. The change to these macros will be overcome by #162 or #168.