Skip to content

Commit

Permalink
Removed unnecessary bracket change
Browse files Browse the repository at this point in the history
  • Loading branch information
konradkusiak97 committed Nov 3, 2023
1 parent c86b841 commit 17cb185
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/adapters/cuda/enqueue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ setKernelParams(const ur_context_handle_t Context,
// Set up local memory requirements for kernel.
if (Device->getMaxChosenLocalMem() < 0) {
bool EnvVarHasURPrefix =
(std::getenv("UR_CUDA_MAX_LOCAL_MEM_SIZE") != nullptr);
std::getenv("UR_CUDA_MAX_LOCAL_MEM_SIZE") != nullptr;
setErrorMessage(EnvVarHasURPrefix ? "Invalid value specified for "
"UR_CUDA_MAX_LOCAL_MEM_SIZE"
: "Invalid value specified for "
Expand All @@ -305,7 +305,7 @@ setKernelParams(const ur_context_handle_t Context,
}
if (LocalSize > static_cast<uint32_t>(Device->getMaxChosenLocalMem())) {
bool EnvVarHasURPrefix =
(std::getenv("UR_CUDA_MAX_LOCAL_MEM_SIZE") != nullptr);
std::getenv("UR_CUDA_MAX_LOCAL_MEM_SIZE") != nullptr;
setErrorMessage(
EnvVarHasURPrefix
? "Local memory for kernel exceeds the amount requested using "
Expand Down

0 comments on commit 17cb185

Please sign in to comment.