Skip to content

Commit 17cb185

Browse files
committed
Removed unnecessary bracket change
1 parent c86b841 commit 17cb185

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/adapters/cuda/enqueue.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ setKernelParams(const ur_context_handle_t Context,
295295
// Set up local memory requirements for kernel.
296296
if (Device->getMaxChosenLocalMem() < 0) {
297297
bool EnvVarHasURPrefix =
298-
(std::getenv("UR_CUDA_MAX_LOCAL_MEM_SIZE") != nullptr);
298+
std::getenv("UR_CUDA_MAX_LOCAL_MEM_SIZE") != nullptr;
299299
setErrorMessage(EnvVarHasURPrefix ? "Invalid value specified for "
300300
"UR_CUDA_MAX_LOCAL_MEM_SIZE"
301301
: "Invalid value specified for "
@@ -305,7 +305,7 @@ setKernelParams(const ur_context_handle_t Context,
305305
}
306306
if (LocalSize > static_cast<uint32_t>(Device->getMaxChosenLocalMem())) {
307307
bool EnvVarHasURPrefix =
308-
(std::getenv("UR_CUDA_MAX_LOCAL_MEM_SIZE") != nullptr);
308+
std::getenv("UR_CUDA_MAX_LOCAL_MEM_SIZE") != nullptr;
309309
setErrorMessage(
310310
EnvVarHasURPrefix
311311
? "Local memory for kernel exceeds the amount requested using "

0 commit comments

Comments
 (0)