summaryrefslogtreecommitdiff
path: root/libcuda/cuda_runtime_api.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libcuda/cuda_runtime_api.cc')
-rw-r--r--libcuda/cuda_runtime_api.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/libcuda/cuda_runtime_api.cc b/libcuda/cuda_runtime_api.cc
index b64c3d9..b540ffd 100644
--- a/libcuda/cuda_runtime_api.cc
+++ b/libcuda/cuda_runtime_api.cc
@@ -1421,7 +1421,9 @@ cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlagsInternal(
dim3 gridDim(context->get_device()->get_gpgpu()->max_cta_per_core() *
context->get_device()->get_gpgpu()->get_config().num_shader());
dim3 blockDim(blockSize);
- kernel_info_t result(gridDim, blockDim, entry);
+ // because this fuction is only checking for resource requirements, we do
+ // not care which stream this kernel runs at, just picked -1
+ kernel_info_t result(gridDim, blockDim, entry, -1);
// if(entry == NULL){
// *numBlocks = 1;
// return g_last_cudaError = cudaErrorUnknown;