File rocprim-conditional-pragma-message.patch of Package rocprim

diff --git a/rocprim/include/rocprim/config.hpp b/rocprim/include/rocprim/config.hpp
index 5e2ae792..c4befa30 100644
--- a/rocprim/include/rocprim/config.hpp
+++ b/rocprim/include/rocprim/config.hpp
@@ -161,6 +161,7 @@
 //  BOOST_PRAGMA_MESSAGE("message")
 //
 //  Expands to the equivalent of #pragma message("message")
+#if defined(ENABLE_ROCPRIM_PRAGMA_MESSAGE)
 #if defined(__INTEL_COMPILER)
     #define ROCPRIM_PRAGMA_MESSAGE(x) \
         __pragma(message(__FILE__ "(" ROCPRIM_STRINGIZE(__LINE__) "): note: " x))
@@ -172,6 +173,9 @@
 #else
     #define ROCPRIM_PRAGMA_MESSAGE(x)
 #endif
+#else
+    #define ROCPRIM_PRAGMA_MESSAGE(x)
+#endif
 
 /// Static asserts that only gets evaluated during device compile.
 #if __HIP_DEVICE_COMPILE__
openSUSE Build Service is sponsored by