Skip to content

Commit fa33045

Browse files
authored
Fixes from windows testing (NVIDIA#89)
* Add missing error handling (tests/test_nvjitlink.py) * Add missing `const` in cudaMemcpyBatchAsync call (cuda/bindings/runtime.pyx.in) * Add qa/13.0.0/01_linux.sh * Remove qa/13.0.0/01_linux.sh after it was moved to a new upstream qa branch. * Strictly correct casts for cudaMemcpyBatchAsync (generated by cython_gen). * Pragmatic minimal fix for cudaMemcpyBatchAsync casts (works with Linux and Windows). (generated with cython-gen)
1 parent 2ac7571 commit fa33045

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎cuda_bindings/cuda/bindings/runtime.pyx.in‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25849,7 +25849,7 @@ def cudaMemcpyBatchAsync(dsts : Optional[Tuple[Any] | List[Any]], srcs : Optiona
2584925849
cdef vector[size_t] cyattrsIdxs = attrsIdxs
2585025850
if numAttrs > <size_t>len(attrs): raise RuntimeError("List is too small: " + str(len(attrs)) + " < " + str(numAttrs))
2585125851
if numAttrs > <size_t>len(attrsIdxs): raise RuntimeError("List is too small: " + str(len(attrsIdxs)) + " < " + str(numAttrs))
25852-
err = cyruntime.cudaMemcpyBatchAsync(<void**><void_ptr>voidStarHelperdsts.cptr, <void**><void_ptr>voidStarHelpersrcs.cptr, cysizes.data(), count, (<cudaMemcpyAttributes>attrs[0])._pvt_ptr if len(attrs) == 1 else cyattrs, cyattrsIdxs.data(), numAttrs, cystream)
25852+
err = cyruntime.cudaMemcpyBatchAsync(<const void**><void_ptr>voidStarHelperdsts.cptr, <const void**><void_ptr>voidStarHelpersrcs.cptr, cysizes.data(), count, (<cudaMemcpyAttributes>attrs[0])._pvt_ptr if len(attrs) == 1 else cyattrs, cyattrsIdxs.data(), numAttrs, cystream)
2585325853
if cyattrs is not NULL:
2585425854
free(cyattrs)
2585525855
return (_dict_cudaError_t[err],)

0 commit comments

Comments
 (0)