Skip to content

Commit

Permalink
Fix somewhat overeager maybe-uninitialized warnigns.
Browse files Browse the repository at this point in the history
Bug 2837899
Bug 2838747
Bug 2838948
Bug 2838990
  • Loading branch information
griwes committed Feb 7, 2020
1 parent 97a4949 commit 6340864
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions cub/device/dispatch/dispatch_histogram.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,7 @@ struct DipatchHistogram
do
{
// Get PTX version
int ptx_version;
int ptx_version = 0;
#if (CUB_PTX_ARCH == 0)
if (CubDebug(error = PtxVersion(ptx_version))) break;
#else
Expand Down Expand Up @@ -829,7 +829,7 @@ struct DipatchHistogram
do
{
// Get PTX version
int ptx_version;
int ptx_version = 0;
#if (CUB_PTX_ARCH == 0)
if (CubDebug(error = PtxVersion(ptx_version))) break;
#else
Expand Down Expand Up @@ -912,7 +912,7 @@ struct DipatchHistogram
do
{
// Get PTX version
int ptx_version;
int ptx_version = 0;
#if (CUB_PTX_ARCH == 0)
if (CubDebug(error = PtxVersion(ptx_version))) break;
#else
Expand Down Expand Up @@ -1024,7 +1024,7 @@ struct DipatchHistogram
do
{
// Get PTX version
int ptx_version;
int ptx_version = 0;
#if (CUB_PTX_ARCH == 0)
if (CubDebug(error = PtxVersion(ptx_version))) break;
#else
Expand Down
4 changes: 2 additions & 2 deletions cub/device/dispatch/dispatch_radix_sort.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -1284,7 +1284,7 @@ struct DispatchRadixSort :
cudaError_t error;
do {
// Get PTX version
int ptx_version;
int ptx_version = 0;
if (CubDebug(error = PtxVersion(ptx_version))) break;

// Create dispatch functor
Expand Down Expand Up @@ -1607,7 +1607,7 @@ struct DispatchSegmentedRadixSort :
cudaError_t error;
do {
// Get PTX version
int ptx_version;
int ptx_version = 0;
if (CubDebug(error = PtxVersion(ptx_version))) break;

// Create dispatch functor
Expand Down
4 changes: 2 additions & 2 deletions cub/device/dispatch/dispatch_reduce.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ struct DispatchReduce :
do
{
// Get PTX version
int ptx_version;
int ptx_version = 0;
if (CubDebug(error = PtxVersion(ptx_version))) break;

// Create dispatch functor
Expand Down Expand Up @@ -843,7 +843,7 @@ struct DispatchSegmentedReduce :
do
{
// Get PTX version
int ptx_version;
int ptx_version = 0;
if (CubDebug(error = PtxVersion(ptx_version))) break;

// Create dispatch functor
Expand Down
2 changes: 1 addition & 1 deletion cub/device/dispatch/dispatch_reduce_by_key.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ struct DispatchReduceByKey
do
{
// Get PTX version
int ptx_version;
int ptx_version = 0;
#if (CUB_PTX_ARCH == 0)
if (CubDebug(error = PtxVersion(ptx_version))) break;
#else
Expand Down
2 changes: 1 addition & 1 deletion cub/device/dispatch/dispatch_rle.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ struct DeviceRleDispatch
do
{
// Get PTX version
int ptx_version;
int ptx_version = 0;
#if (CUB_PTX_ARCH == 0)
if (CubDebug(error = PtxVersion(ptx_version))) break;
#else
Expand Down
2 changes: 1 addition & 1 deletion cub/device/dispatch/dispatch_scan.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ struct DispatchScan
do
{
// Get PTX version
int ptx_version;
int ptx_version = 0;
if (CubDebug(error = PtxVersion(ptx_version))) break;

// Get kernel kernel dispatch configurations
Expand Down
2 changes: 1 addition & 1 deletion cub/device/dispatch/dispatch_select_if.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ struct DispatchSelectIf
do
{
// Get PTX version
int ptx_version;
int ptx_version = 0;
#if (CUB_PTX_ARCH == 0)
if (CubDebug(error = PtxVersion(ptx_version))) break;
#else
Expand Down
2 changes: 1 addition & 1 deletion cub/device/dispatch/dispatch_spmv_orig.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -801,7 +801,7 @@ struct DispatchSpmv
do
{
// Get PTX version
int ptx_version;
int ptx_version = 0;
#if (CUB_PTX_ARCH == 0)
if (CubDebug(error = PtxVersion(ptx_version))) break;
#else
Expand Down

0 comments on commit 6340864

Please sign in to comment.