Skip to content

[BUG]: Shadow warning in thrust #335

@hageboeck

Description

@hageboeck

Is this a duplicate?

Type of Bug

Something else

Component

Thrust

Describe the bug

Using cuda12, I observe a shadow warning in thrust.

The relevant code is here:
https://github.com/NVIDIA/thrust/blob/24486a169a62a58ef8f824d3dc9613c006b6f5a7/thrust/detail/execute_with_dependencies.h#L60-L64

Line 60 is shadowed by line 64. I guess a simple renaming would help.

How to Reproduce

Compile thrust with all warnings enabled.

Expected behavior

No warnings of course

Reproduction link

No response

Operating System

Alma8

nvidia-smi output

No response

NVCC version

nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2023 NVIDIA Corporation
Built on Fri_Jan__6_16:45:21_PST_2023
Cuda compilation tools, release 12.0, V12.0.140
Build cuda_12.0.r12.0/compiler.32267302_0

Metadata

Metadata

Assignees

Labels

thrustFor all items related to Thrust.

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions