camp: fixing build issue (#41400)
* adding necessary headers, to fix https://github.com/spack/spack/issues/41398
* deleting something imported by accident
* [@spackbot] updating style on behalf of yizeyi18
* undo commit 7688fed
according to suggestion from @msimberg
* patching camp@:2022.10.1 for compatibility with gcc-13
* adding the patch
* fixing paths in the patch
* [@spackbot] updating style on behalf of yizeyi18
* Update camp patch using LLNL/camp@05e1c35
Co-authored-by: Mikael Simberg <mikael.simberg@iki.fi>
* changing patch name
---------
Co-authored-by: Mikael Simberg <mikael.simberg@iki.fi>
This commit is contained in:
parent
80f31829a8
commit
a1fa862c3f
@ -0,0 +1,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
|
||||
{
|
@ -55,6 +55,8 @@ class Camp(CMakePackage, CudaPackage, ROCmPackage):
|
||||
|
||||
depends_on("blt", type="build")
|
||||
|
||||
patch("gcc-13-missing-header.patch", when="@:2022.10 %gcc@13:")
|
||||
|
||||
conflicts("^blt@:0.3.6", when="+rocm")
|
||||
|
||||
def cmake_args(self):
|
||||
|
Loading…
Reference in New Issue
Block a user