Skip to content

Commit

Permalink
Rename function
Browse files Browse the repository at this point in the history
  • Loading branch information
kingcrimsontianyu committed Oct 10, 2024
1 parent 0258fc0 commit 59e8f73
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cpp/include/cudf/io/config_utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ bool is_kvikio_enabled();
/**
* @brief Returns true if the current device is the Grace Hopper system.
*/
bool is_using_grace_hopper();
bool is_current_device_grace_hopper();

} // namespace io::cufile_integration

Expand Down
4 changes: 2 additions & 2 deletions cpp/src/io/utilities/config_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ usage_policy get_env_policy()
CUDF_FAIL("Invalid LIBCUDF_CUFILE_POLICY value: " + env_val);
};

if (is_using_grace_hopper()) {
if (is_current_device_grace_hopper()) {
static auto const env_val = getenv_or<std::string>("LIBCUDF_CUFILE_POLICY", "OFF");
return get_policy(env_val);
} else {
Expand All @@ -62,7 +62,7 @@ bool is_gds_enabled() { return is_always_enabled() or get_env_policy() == usage_

bool is_kvikio_enabled() { return get_env_policy() == usage_policy::KVIKIO; }

bool is_using_grace_hopper()
bool is_current_device_grace_hopper()
{
int device_idx{};
CUDF_CUDA_TRY(cudaGetDevice(&device_idx));
Expand Down

0 comments on commit 59e8f73

Please sign in to comment.