Skip to content

Commit 37e37be

Browse files
Copilotmdboom
andcommitted
Fix variable name casing errors in List/Tuple replacement
Co-authored-by: mdboom <38294+mdboom@users.noreply.github.com>
1 parent 07fe604 commit 37e37be

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

cuda_bindings/cuda/bindings/driver.pyx.in

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33091,9 +33091,9 @@ def cuMemMapArrayAsync(mapInfoList : Optional[tuple[CUarrayMapInfo] | list[CUarr
3309133091
if cymapInfoList is NULL:
3309233092
raise MemoryError('Failed to allocate length x size memory: ' + str(len(mapInfoList)) + 'x' + str(sizeof(cydriver.CUarrayMapInfo)))
3309333093
for idx in range(len(mapInfoList)):
33094-
string.memcpy(&cymapInfolist[idx], (<CUarrayMapInfo>mapInfolist[idx])._pvt_ptr, sizeof(cydriver.CUarrayMapInfo))
33094+
string.memcpy(&cymapInfoList[idx], (<CUarrayMapInfo>mapInfoList[idx])._pvt_ptr, sizeof(cydriver.CUarrayMapInfo))
3309533095
elif len(mapInfoList) == 1:
33096-
cymapInfoList = (<CUarrayMapInfo>mapInfolist[0])._pvt_ptr
33096+
cymapInfoList = (<CUarrayMapInfo>mapInfoList[0])._pvt_ptr
3309733097
if count > len(mapInfoList): raise RuntimeError("List is too small: " + str(len(mapInfoList)) + " < " + str(count))
3309833098
with nogil:
3309933099
err = cydriver.cuMemMapArrayAsync(cymapInfoList, count, cyhStream)
@@ -40317,9 +40317,9 @@ def cuLaunchCooperativeKernelMultiDevice(launchParamsList : Optional[tuple[CUDA_
4031740317
if cylaunchParamsList is NULL:
4031840318
raise MemoryError('Failed to allocate length x size memory: ' + str(len(launchParamsList)) + 'x' + str(sizeof(cydriver.CUDA_LAUNCH_PARAMS)))
4031940319
for idx in range(len(launchParamsList)):
40320-
string.memcpy(&cylaunchParamslist[idx], (<CUDA_LAUNCH_PARAMS>launchParamslist[idx])._pvt_ptr, sizeof(cydriver.CUDA_LAUNCH_PARAMS))
40320+
string.memcpy(&cylaunchParamsList[idx], (<CUDA_LAUNCH_PARAMS>launchParamsList[idx])._pvt_ptr, sizeof(cydriver.CUDA_LAUNCH_PARAMS))
4032140321
elif len(launchParamsList) == 1:
40322-
cylaunchParamsList = (<CUDA_LAUNCH_PARAMS>launchParamslist[0])._pvt_ptr
40322+
cylaunchParamsList = (<CUDA_LAUNCH_PARAMS>launchParamsList[0])._pvt_ptr
4032340323
if numDevices > len(launchParamsList): raise RuntimeError("List is too small: " + str(len(launchParamsList)) + " < " + str(numDevices))
4032440324
with nogil:
4032540325
err = cydriver.cuLaunchCooperativeKernelMultiDevice(cylaunchParamsList, numDevices, flags)

cuda_bindings/cuda/bindings/runtime.pyx.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28246,9 +28246,9 @@ def cudaMemPoolSetAccess(memPool, descList : Optional[tuple[cudaMemAccessDesc] |
2824628246
if cydescList is NULL:
2824728247
raise MemoryError('Failed to allocate length x size memory: ' + str(len(descList)) + 'x' + str(sizeof(cyruntime.cudaMemAccessDesc)))
2824828248
for idx in range(len(descList)):
28249-
string.memcpy(&cydesclist[idx], (<cudaMemAccessDesc>desclist[idx])._pvt_ptr, sizeof(cyruntime.cudaMemAccessDesc))
28249+
string.memcpy(&cydescList[idx], (<cudaMemAccessDesc>descList[idx])._pvt_ptr, sizeof(cyruntime.cudaMemAccessDesc))
2825028250
elif len(descList) == 1:
28251-
cydescList = (<cudaMemAccessDesc>desclist[0])._pvt_ptr
28251+
cydescList = (<cudaMemAccessDesc>descList[0])._pvt_ptr
2825228252
if count > <size_t>len(descList): raise RuntimeError("List is too small: " + str(len(descList)) + " < " + str(count))
2825328253
with nogil:
2825428254
err = cyruntime.cudaMemPoolSetAccess(cymemPool, cydescList, count)

0 commit comments

Comments
 (0)