Skip to content

Commit

Permalink
Reapply changes from NVIDIA#404 that were lost in conflict resolution.
Browse files Browse the repository at this point in the history
Fixes NVIDIA#510.
  • Loading branch information
alliepiper committed Jun 22, 2022
1 parent 92b501a commit 04a78a6
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions cub/util_device.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -363,14 +363,9 @@ CUB_RUNTIME_FUNCTION inline cudaError_t PtxVersionUncached(int& ptx_version)
(
cudaFuncAttributes empty_kernel_attrs;

do
{
if (CubDebug(result = cudaFuncGetAttributes(&empty_kernel_attrs,
empty_kernel)))
{
break;
}
} while (0);
result = cudaFuncGetAttributes(&empty_kernel_attrs,
reinterpret_cast<void*>(empty_kernel));
CubDebug(result);

ptx_version = empty_kernel_attrs.ptxVersion * 10;
),
Expand Down

0 comments on commit 04a78a6

Please sign in to comment.