Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@cyyever
Copy link
Contributor

@cyyever cyyever commented Aug 26, 2025

Enable USE_CUPTI_RANGE_PROFILER.

@meta-cla meta-cla bot added the cla signed label Aug 26, 2025
@cyyever cyyever changed the title Fix CUDA version check Fix HAS_CUPTI_RANGE_PROFILER check Aug 26, 2025
@cyyever cyyever force-pushed the windows_build branch 3 times, most recently from 11b5710 to a6ae63b Compare August 27, 2025 06:23
// https://docs.nvidia.com/cupti/main/main.html#evolution-of-the-profiling-apis
#if defined(USE_CUPTI_RANGE_PROFILER) && defined(CUDART_VERSION) && \
CUDART_VERSION >= 10000 && CUDA_VERSION >= 11000 && CUDA_VERSION <= 12060
CUDART_VERSION >= 10000 && CUDA_VERSION >= 12060
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure this is correct. I recall the range profiler breaking on later versions

Copy link
Contributor Author

@cyyever cyyever Aug 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sraikund16 Can reproduce? Nevertheless, the guard is wrong according to the above comment. If the profile still breaks, we should fix it rather than incorrectly disabling it.

Copy link
Contributor

@sraikund16 sraikund16 Aug 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cyyever based on the NV link provided, it looks like we can use the current APIs until 13.0 although it is not recommended. However, by 13.0 we will need to use the new APIs as the old ones are deprecated. Either way it would require a rework.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the current APIs exist during the whole CUDA 13 cycle, then we have lots of time for refactoring.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants