Updated IPC detection logic (#51)

* Added environment variable to enable/disable IPC at runtime

* Fixed IPC detection logic allow for difference process mappings

* Updated README.md
このコミットが含まれているのは:
Yiltan
2025-03-17 11:36:11 -04:00
committed by GitHub
コミット b7f3839f27
7個のファイルの変更47行の追加1行の削除
+11
ファイルの表示
@@ -146,4 +146,15 @@ uint64_t wallClk_freq_mhz() {
return 0;
}
struct rocshmem_env_config_t rocshmem_env_config;
void rocshmem_env_config_init(void) {
char* env_value = NULL;
env_value = getenv("ROCSHMEM_RO_DISABLE_IPC");
if (NULL != env_value) {
rocshmem_env_config.ro_disable_ipc = atoi(env_value);
}
}
} // namespace rocshmem