Skip to content

Add CUDA 13 support#2011

Open
smithsg84 wants to merge 35 commits into
developfrom
feature/smith84/cuda-13-support
Open

Add CUDA 13 support#2011
smithsg84 wants to merge 35 commits into
developfrom
feature/smith84/cuda-13-support

Conversation

@smithsg84

@smithsg84 smithsg84 commented Apr 8, 2026

Copy link
Copy Markdown
Member

Add support for CUDA 13

Small CUDA 13 changes due to removed and changed APIs.
Added test for CUDA 13 to matrix CI.
Updated BLT submodule to 7.2 release with CUDA 13 support.
The RAJA spack package has been updated to enable CUDA 13 builds.

@@ -0,0 +1,161 @@
# Copyright Spack Project Developers. See COPYRIGHT file for details.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Do you plan to have the camp package changes pushed up to the spack package repo?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yes, once CI tests are working PR for spack-packages / camp / BLT will be done.

Comment on lines +1 to +24
diff --git a/include/camp/resource.hpp b/include/camp/resource.hpp
index 58df206..763aa20 100644
--- a/include/camp/resource.hpp
+++ b/include/camp/resource.hpp
@@ -12,6 +12,7 @@ http://github.com/llnl/camp
#define __CAMP_RESOURCE_HPP

#include <cstring>
+#include <stdexcept>
#include <memory>
#include <mutex>
#include <type_traits>
diff --git a/include/camp/resource/host.hpp b/include/camp/resource/host.hpp
index c765175..4428c57 100644
--- a/include/camp/resource/host.hpp
+++ b/include/camp/resource/host.hpp
@@ -13,6 +13,7 @@ http://github.com/llnl/camp

#include "camp/resource/event.hpp"
#include "camp/resource/platform.hpp"
+#include <cstdlib>

namespace camp
{

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for looking in to this, Steve! Should we just directly update Camp and release it, rather than patching it? Same question for BLT.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

That camp patch is in the upstream spack-packages repo, it is there to support building older versions of camp (pre camp 2022.10). Local copy was done to get CI build system working until camp can be updated for CUDA.

@smithsg84

Copy link
Copy Markdown
Member Author

This PR fixes #1958

This PR depends on CAMP changes llnl/camp#196

@rhornung67 rhornung67 added this to the July 2026 Release milestone May 26, 2026
@smithsg84 smithsg84 marked this pull request as ready for review June 24, 2026 18:45
@smithsg84 smithsg84 changed the title Feature/smith84/cuda 13 support Add CUDA 13 support Jun 24, 2026
@smithsg84

Copy link
Copy Markdown
Member Author

@rhornung67 @MrBurmark @adayton1 @artv3 @johnbowen42 @rchen20 @adrienbernede

TPLs have all been updated and CUDA 13 PR for RAJA finally ready for review.

Comment thread .uberenv_config.json Outdated
Comment thread include/RAJA/policy/cuda/MemUtils_CUDA.hpp

@rchen20 rchen20 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Does this update to a new BLT release, or just BLT/develop?

Comment thread test/unit/resource/tests/test-resource-AsyncTime.hpp
@smithsg84

Copy link
Copy Markdown
Member Author

Does this update to a new BLT release, or just BLT/develop?

It is a new BLT release 0.7.2 release. Some changes in BLT were needed for Cuda 13.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants