diff options
| author | sspenst <[email protected]> | 2016-06-09 13:38:13 -0700 |
|---|---|---|
| committer | sspenst <[email protected]> | 2016-06-09 13:38:13 -0700 |
| commit | 5e9b6521e625d30f9f3efbb292fd22bdab5c884a (patch) | |
| tree | ac6e44de2d0f64cb15155860b3b328e9b4f06507 /libcuda/cuda_runtime_api.cc | |
| parent | 41dbdd842f315645cc4cd05e3b6263b982d1be2e (diff) | |
Added a basic implementation of cudaStreamCreateWithFlags
Diffstat (limited to 'libcuda/cuda_runtime_api.cc')
| -rw-r--r-- | libcuda/cuda_runtime_api.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libcuda/cuda_runtime_api.cc b/libcuda/cuda_runtime_api.cc index 862e2b9..77456d4 100644 --- a/libcuda/cuda_runtime_api.cc +++ b/libcuda/cuda_runtime_api.cc @@ -984,6 +984,10 @@ __host__ cudaError_t CUDARTAPI cudaStreamCreate(cudaStream_t *stream) return g_last_cudaError = cudaSuccess; } +__host__ __device__ cudaError_t CUDARTAPI cudaStreamCreateWithFlags(cudaStream_t *stream, unsigned int flags) { + cudaStreamCreate(stream); +} + __host__ cudaError_t CUDARTAPI cudaStreamDestroy(cudaStream_t stream) { #if (CUDART_VERSION >= 3000) |
