Skip to content

Commit

Permalink
Fixes #394 Not ensuring driver initialization when getting a device n…
Browse files Browse the repository at this point in the history
…ame by device ID.
  • Loading branch information
eyalroz committed Aug 19, 2022
1 parent 2904112 commit a8a4dee
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/cuda/api/device.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ namespace detail_ {

inline ::std::string get_name(id_t id)
{
initialize_driver();
using size_type = int; // Yes, an int, that's what cuDeviceName takes
static constexpr const size_type initial_size_reservation { 100 };
static constexpr const size_type larger_size { 1000 }; // Just in case
Expand Down

0 comments on commit a8a4dee

Please sign in to comment.