File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 9090
9191proc `=destroy` * (p: CudaLayoutArrayObj ) {.noSideEffect .}=
9292 if not p.value.isNil:
93- check cudaFree (p.value)
93+ discard cudaFree (p.value)
9494
9595proc layoutOnDevice * [T:SomeFloat ](t: CudaTensor [T]): CudaTensorLayout [T] {.noSideEffect .}=
9696 # # Store a CudaTensor shape, strides, etc information on the GPU
Original file line number Diff line number Diff line change 1616 ../ laser/ dynamic_stack_arrays,
1717 ../ laser/ tensor/ datatypes,
1818 nimblas,
19- nimcuda/ cuda12_5/ [cuda_runtime_api, check ],
19+ nimcuda/ cuda12_5/ [cuda_runtime_api],
2020 # Standard library
2121 std/ [complex]
2222
8181
8282proc `=destroy` * [T](p: CudaTensorRefTrackerObj [T]) {.noSideEffect .}=
8383 if not p.value.isNil:
84- check cudaFree (p.value)
84+ discard cudaFree (p.value)
8585
8686
8787
You can’t perform that action at this time.
0 commit comments