File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -295,7 +295,7 @@ setKernelParams(const ur_context_handle_t Context,
295
295
// Set up local memory requirements for kernel.
296
296
if (Device->getMaxChosenLocalMem () < 0 ) {
297
297
bool EnvVarHasURPrefix =
298
- ( std::getenv (" UR_CUDA_MAX_LOCAL_MEM_SIZE" ) != nullptr ) ;
298
+ std::getenv (" UR_CUDA_MAX_LOCAL_MEM_SIZE" ) != nullptr ;
299
299
setErrorMessage (EnvVarHasURPrefix ? " Invalid value specified for "
300
300
" UR_CUDA_MAX_LOCAL_MEM_SIZE"
301
301
: " Invalid value specified for "
@@ -305,7 +305,7 @@ setKernelParams(const ur_context_handle_t Context,
305
305
}
306
306
if (LocalSize > static_cast <uint32_t >(Device->getMaxChosenLocalMem ())) {
307
307
bool EnvVarHasURPrefix =
308
- ( std::getenv (" UR_CUDA_MAX_LOCAL_MEM_SIZE" ) != nullptr ) ;
308
+ std::getenv (" UR_CUDA_MAX_LOCAL_MEM_SIZE" ) != nullptr ;
309
309
setErrorMessage (
310
310
EnvVarHasURPrefix
311
311
? " Local memory for kernel exceeds the amount requested using "
You can’t perform that action at this time.
0 commit comments