Skip to content

Commit

Permalink
Add missing var
Browse files Browse the repository at this point in the history
  • Loading branch information
hdelan committed Oct 10, 2023
1 parent 755d52f commit 77845ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/adapters/hip/enqueue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urEnqueueKernelLaunch(
int DeviceMaxLocalMem = 0;
UR_CHECK_ERROR(hipDeviceGetAttribute(
&DeviceMaxLocalMem, hipDeviceAttributeMaxSharedMemoryPerBlock,
HIPDev));
Dev->get()));

static const int EnvVal = std::atoi(LocalMemSzPtr);
if (EnvVal <= 0 || EnvVal > DeviceMaxLocalMem) {
Expand Down

0 comments on commit 77845ea

Please sign in to comment.