-
Notifications
You must be signed in to change notification settings - Fork 915
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
Use nvtx3 includes in string examples. #13165
Conversation
Should we also replace lines like these? cudf/cpp/examples/strings/CMakeLists.txt Line 34 in de676b1
cc @vyasr |
cc @robertmaynard (for the CMake perspective) |
@jakirkham I think no, we do not change those yet. Once we require CMake >= 3.25 we can update those lines. |
Would it make sense to conditionally use the CMake 3.25+ features when CMake is new enough? Or would that not make sense? |
We could do so by doing: target_link_libraries(libcudf_apis PRIVATE cudf::cudf)
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.25)
target_link_libraries(libcudf_apis PRIVATE CUDA::nvtx3)
else()
target_link_libraries(libcudf_apis PRIVATE nvToolsExt)
endif() |
We could do the conditional if we want to. I don't know that it really buys us anything since we will likely switch to requiring CMake 3.25 before the vast majority of people building libcudf upgrade on their own. |
Ideally, we should be using the NVTX C++ API in cuDF has a vendored, older version of that header here: https://github.com/rapidsai/cudf/blob/branch-23.06/cpp/include/cudf/detail/nvtx/nvtx3.hpp |
You also never need to link against |
Adding this link here for reference #6476 |
Thanks for the reminder about that, I'd completely forgot. I pinged Jason to get it reviewed and merged. I wouldn't consider it to be a blocker because we can always use |
Thanks so much for the context here, @jrhemstad @vyasr @davidwendt @robertmaynard. I would like to keep the scope constrained for now. We have a lot of moving pieces for CUDA 12 and I think that further improvements on this are important but not for 23.06 / CUDA 12 support. The primary goal of this PR is to ensure that we fetch I'll merge this PR as-is for now. |
/merge |
Description
This PR updates libcudf string examples to use
<nvtx3/nvToolsExt.h>
. This ensures we fetch the header-only NVTX v3. See NVTX docs for more information: https://nvidia.github.io/NVTX/#c-and-cChecklist