Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
Merge pull request #513 from allisonvacanti/restore_lost_changes
Browse files Browse the repository at this point in the history
Reapply changes from #404 that were lost in conflict resolution.
  • Loading branch information
alliepiper authored Jun 29, 2022
2 parents 28db1e5 + 04a78a6 commit 29b0304
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 29b0304

Please sign in to comment.