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

Replace PGI by NVHPC in CMake setup #4196

Merged
merged 3 commits into from
Jul 30, 2021

Conversation

masterleinad
Copy link
Contributor

CMake identifies nvc++ as NVHPC for CMake >=3.20 and as PGI before that. Since nvc++ is supposed to be backward-compatible with pgc++ just setting NVHPC as internal compiler identification for PGI should be fine and avoids distinguishing between the two.

Copy link
Member

@crtrott crtrott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I want a test written for the volatile operators of half. @e10harvey Note that the volatile operators where this PR changes to auto& didn't actually update val I believe.

auto val_ref = const_cast<impl_type&>(val);
val_ref = __float2half(__half2float(const_cast<impl_type&>(val)) +
auto& val_ref = const_cast<impl_type&>(val);
val_ref = __float2half(__half2float(const_cast<impl_type&>(val)) +
__half2float(rhs.val));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

omg this operator was simply wrong before. val_ref was a value type wasn't it? Not a reference type? Can we get a test for this?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does not belong to this PR IMO

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved to #4198 and asked @e10harvey for a test.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

auto val_ref = const_cast<impl_type&>(val);
val_ref = __float2half(__half2float(const_cast<impl_type&>(val)) +
auto& val_ref = const_cast<impl_type&>(val);
val_ref = __float2half(__half2float(const_cast<impl_type&>(val)) +
__half2float(rhs.val));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does not belong to this PR IMO

cmake/kokkos_compiler_id.cmake Show resolved Hide resolved
@masterleinad masterleinad requested a review from dalg24 July 30, 2021 13:37
@masterleinad
Copy link
Contributor Author

Retest this please.

@crtrott crtrott merged commit cd5cdbc into kokkos:develop Jul 30, 2021
@e10harvey
Copy link
Contributor

e10harvey commented Aug 2, 2021

I want a test written for the volatile operators of half. @e10harvey Note that the volatile operators where this PR changes to auto& didn't actually update val I believe.

@crtrott These tests are part of #4101.

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

Successfully merging this pull request may close these issues.

None yet

4 participants