Skip to content

Commit

Permalink
use -1 for default stream id
Browse files Browse the repository at this point in the history
  • Loading branch information
JRPan committed Aug 9, 2024
1 parent 1772306 commit 68765f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libcuda/cuda_runtime_api.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1421,8 +1421,8 @@ cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlagsInternal(
dim3 gridDim(context->get_device()->get_gpgpu()->max_cta_per_core() *
context->get_device()->get_gpgpu()->get_config().num_shader());
dim3 blockDim(blockSize);
// because this fuction is only checking for resource requirements, we do not care which stream this kernel runs at, just picked 0
kernel_info_t result(gridDim, blockDim, entry, 0);
// 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;
Expand Down

0 comments on commit 68765f4

Please sign in to comment.