Skip to content

Commit

Permalink
grandteton: Fix error in detecting HGX Presence
Browse files Browse the repository at this point in the history
Summary:
We were handling the wrong exception. kv::get() throws
std::filesystem::filesystem_error and not kv::key_does_not_exist.

Test Plan:
Copy libhgx package onto system and ensure
we can run fw-util hgx --version.

Reviewed By: williamspatrick

Differential Revision: D52485981

fbshipit-source-id: 133fdb939ff410a01fc4d23d5430fb7d85f6bd1b
  • Loading branch information
amithash authored and facebook-github-bot committed Jan 2, 2024
1 parent 15dd279 commit a9d893d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ GPUConfig getConfig() {
} else {
return GPU_CONFIG_UNKNOWN;
}
} catch (kv::key_does_not_exist& e) {
} catch (std::filesystem::filesystem_error& e) {
const int hgx_eeprom_bus = 0x9;
int fd = 0;
uint8_t tlen, rlen;
Expand Down

0 comments on commit a9d893d

Please sign in to comment.