Skip to content

Commit

Permalink
gtests: correct the function signature
Browse files Browse the repository at this point in the history
  • Loading branch information
dzarukin committed Jan 13, 2025
1 parent 8e568cd commit ba5a271
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/gtests/dnnl_test_common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,15 +101,15 @@ dnnl::engine::kind get_test_engine_kind();
dnnl::engine get_test_engine();
#endif

inline int get_vendor_id(const std::string &vendor) {
inline uint32_t get_vendor_id(const std::string &vendor) {
if (vendor == "nvidia") {
return 0x10DE;
} else if (vendor == "amd") {
return 0x1002;
} else if (vendor == "intel") {
return 0x8086;
} else {
return -1;
return 0x0;
}
}

Expand Down

0 comments on commit ba5a271

Please sign in to comment.