Skip to content

Commit

Permalink
change to ADIOS2_USE_KVCACHE from ADIOS2_USE_Cache to be consistent i…
Browse files Browse the repository at this point in the history
…n naming (#4250)
  • Loading branch information
pnorbert authored Jul 19, 2024
1 parent 9f3ed42 commit 51128a1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cmake/DetectOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -607,13 +607,13 @@ elseif(ADIOS2_USE_Campaign)
endif()

# KVCache
if(ADIOS2_USE_Cache STREQUAL AUTO)
if(ADIOS2_USE_KVCACHE STREQUAL AUTO)
find_package(hiredis)
if (hiredis_FOUND)
message(STATUS "hiredis found. Turn on KVCache")
set(ADIOS2_HAVE_KVCACHE TRUE)
endif()
elseif(ADIOS2_USE_Cache)
elseif(ADIOS2_USE_KVCACHE)
find_package(hiredis REQUIRED)
if (hiredis_FOUND)
message(STATUS "hiredis found. Turn on KVCache")
Expand Down
2 changes: 1 addition & 1 deletion scripts/build_scripts/build-adios2-kvcache.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ build_cache() {
fi

cd "${BUILD_DIR}" || exit
cmake .. -DADIOS2_USE_Cache=ON \
cmake .. -DADIOS2_USE_KVCACHE=ON \
-DADIOS2_USE_Python=ON \
-DCMAKE_PREFIX_PATH="${SW_DIR}/hiredis" \
-DCMAKE_INSTALL_PREFIX="${SW_DIR}"/adios2
Expand Down
2 changes: 1 addition & 1 deletion source/adios2/toolkit/kvcache/KVCacheCommon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ void KVCacheCommon::KeyPrefixExistence(const std::string &key_prefix,
}
else
{
for (int i = 0; i < m_redisReply->elements; i++)
for (size_t i = 0; i < m_redisReply->elements; i++)
{
keys.insert(m_redisReply->element[i]->str);
}
Expand Down

0 comments on commit 51128a1

Please sign in to comment.