Skip to content

Commit

Permalink
Fixes #568: Now correctly reporting whether or not setting function a…
Browse files Browse the repository at this point in the history
…ttributes is implemented (CUDA >= 9.0 or not)
  • Loading branch information
Eyal Rozenberg committed Jan 2, 2024
1 parent f33c8ed commit 9d5818e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cuda/api/multi_wrapper_impls/kernel.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ 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) );
" to value " + ::std::to_string(value));
#else
throw(cuda::runtime_error {cuda::status::not_yet_implemented});
#endif
}
Expand Down

0 comments on commit 9d5818e

Please sign in to comment.