Skip to content

Commit

Permalink
Fixes #598: library kernel get_attribute() now actually returns the…
Browse files Browse the repository at this point in the history
… attribute, and `set_attribute()` returns `void`
  • Loading branch information
eyalroz committed Mar 8, 2024
1 parent a3aea3e commit d20e738
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cuda/api/kernels/in_library.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,10 @@ inline attribute_value_t get_attribute(
throw_if_error_lazy(status, ::std::string("Failed getting attribute ")
+ cuda::kernel::detail_::attribute_name(attribute) + " for " + identify(library_kernel_handle)
+ " on " + device::detail_::identify(device_id));
return value;
}

inline attribute_value_t set_attribute(
inline void set_attribute(
kernel::handle_t library_kernel_handle,
device::id_t device_id,
kernel::attribute_t attribute,
Expand Down

0 comments on commit d20e738

Please sign in to comment.