From 4c52792f3da96d7d6b4490b78115944e2721d185 Mon Sep 17 00:00:00 2001 From: Eyal Rozenberg Date: Tue, 2 Jan 2024 12:33:48 +0200 Subject: [PATCH] Fixes #568: Now correctly reporting whether or not setting function attributes is implemented (CUDA >= 9.0 or not) --- src/cuda/api/multi_wrapper_impls/kernel.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cuda/api/multi_wrapper_impls/kernel.hpp b/src/cuda/api/multi_wrapper_impls/kernel.hpp index 9cdac8d0..2ae40ce7 100644 --- a/src/cuda/api/multi_wrapper_impls/kernel.hpp +++ b/src/cuda/api/multi_wrapper_impls/kernel.hpp @@ -84,9 +84,9 @@ inline void kernel_t::set_attribute(kernel::attribute_t attribute, kernel::attri throw_if_error_lazy(result, "Setting CUDA device function attribute " + ::std::string(kernel::detail_::attribute_name(attribute)) + - " to value " + ::std::to_string(value) ); - throw(cuda::runtime_error {cuda::status::not_yet_implemented}); + " to value " + ::std::to_string(value)); #endif + throw(cuda::runtime_error {cuda::status::not_yet_implemented}); } namespace detail_ {