Skip to content
This repository has been archived by the owner on Nov 25, 2024. It is now read-only.

Commit

Permalink
fix enable condition
Browse files Browse the repository at this point in the history
  • Loading branch information
dongxuy04 committed Nov 12, 2023
1 parent e848bc6 commit f80b568
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/src/wholememory/memory_handle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1476,7 +1476,7 @@ wholememory_error_code_t create_wholememory(wholememory_handle_t* wholememory_ha
whole_memory_handle->impl = new distributed_wholememory_impl(
whole_memory_handle, total_size, comm, memory_type, memory_location, data_granularity);
} else if (memory_type == WHOLEMEMORY_MT_CONTINUOUS) {
if (is_intranode_communicator(comm) && !SupportEGM()) {
if (is_intranode_communicator(comm) || !SupportEGM()) {
if (memory_location == WHOLEMEMORY_ML_HOST) {
whole_memory_handle->impl = new global_mapped_host_wholememory_impl(
whole_memory_handle, total_size, comm, memory_type, memory_location, data_granularity);
Expand Down

0 comments on commit f80b568

Please sign in to comment.