| 1209 | } |
| 1210 | |
| 1211 | cudaError_t CUDARTAPI cudaWaitExternalSemaphoresAsync(const cudaExternalSemaphore_t* extSemArray, |
| 1212 | const cudaExternalSemaphoreWaitParams* paramsArray, |
| 1213 | unsigned int numExtSems, |
| 1214 | cudaStream_t stream) |
| 1215 | { |
| 1216 | static_assert(sizeof(CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS) == sizeof(cudaExternalSemaphoreWaitParams), |
| 1217 | "unexpected size of cudaExternalSemaphoreWaitParams"); |
| 1218 | |
| 1219 | CUresult result = cuWaitExternalSemaphoresAsync( |
| 1220 | (CUexternalSemaphore*)extSemArray, |
| 1221 | (const CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS*)paramsArray, |
| 1222 | numExtSems, |
| 1223 | stream); |
| 1224 | return Runtime::setError(result); |
| 1225 | } |
| 1226 | |
| 1227 | cudaError_t CUDARTAPI cudaDestroyExternalSemaphore(cudaExternalSemaphore_t extSem) |
| 1228 | { |
nothing calls this directly
no outgoing calls
no test coverage detected