Skip to content

Commit

Permalink
Fix broken if-statement
Browse files Browse the repository at this point in the history
  • Loading branch information
s-Nick committed Sep 6, 2024
1 parent 3466d6f commit 5f743b2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/include/function_table_initializer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,7 @@ class table_initializer {
break;
}
if (!handle) {
if constexpr (!is_generic_device_supported &&
key == oneapi::mkl::device::generic_device) {
if (!is_generic_device_supported && key == oneapi::mkl::device::generic_device) {
throw mkl::unsupported_device("", "", q.get_device());
}
else {
Expand Down

0 comments on commit 5f743b2

Please sign in to comment.