Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CUDA warning #1385

Closed
rppawlo opened this issue Apr 15, 2021 · 5 comments · Fixed by #1397
Closed

CUDA warning #1385

rppawlo opened this issue Apr 15, 2021 · 5 comments · Fixed by #1397
Assignees

Comments

@rppawlo
Copy link

rppawlo commented Apr 15, 2021

Describe the bug
On cuda builds, we get the warning below repeated for every object that includes vt headers:

../TPL/vt/src/vt/trace/trace_common.h(59): warning: integer conversion resulted in a change of sign

Looking at the code, a negative value is assigned to an unsigned type.

using TraceEntrySeqType   = uint32_t;

static constexpr TraceEntryIDType const no_trace_entry_id = 0;
static constexpr TraceEntrySeqType const no_trace_entry_seq = -1;

To Reproduce
build on cuda

Expected behavior
no warning :)

Screenshots
If applicable, add screenshots to help explain your problem.

Platform (please complete the following information):

  • Supercomputer or desktop [e.g., Trinity, Sierra)
  • Compiler environment [e.g., clang-3.9, gcc8]
  • Libraries [e.g., mpich-2, openmpi)
  • Commit ID or release of VT [e.g., vt-1.0.0]

Additional context
Add any other context about the problem here.

@jstrzebonski
Copy link
Contributor

That is already fixed on develop by commit 65c13f8
Maybe it would be worth porting it to the "release" version @lifflander ?

@rppawlo
Copy link
Author

rppawlo commented Apr 15, 2021

So how do releases work for vt? That fix looks like it was committed in June of 2020. Seems like a simple change that should have been in release 1.0.1 from 6 days ago. Is develop branch not merged into release regularly?

@PhilMiller
Copy link
Member

So how do releases work for vt? That fix looks like it was committed in June of 2020. Seems like a simple change that should have been in release 1.0.1 from 6 days ago. Is develop branch not merged into release regularly?

Our releases work on a "stable branch" model, not a "promotion" model. We make frequent enough changes on develop that would require application source changes or mess with various compilers that we found constant updates to be burdensome at the time the choice was made.

cz4rs pushed a commit that referenced this issue Apr 21, 2021
> EMPIRE/TPL/vt/src/vt/trace/trace_common.h(59): warning: integer conversion resulted in a change of sign
@cz4rs
Copy link
Contributor

cz4rs commented Apr 21, 2021

@rppawlo
Thanks for the report. This will be included in 1.0.2 release and was already merged into release candidate branch.

@cz4rs cz4rs linked a pull request Apr 27, 2021 that will close this issue
@cz4rs
Copy link
Contributor

cz4rs commented Apr 27, 2021

closing manually after PR has been merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants