-
Notifications
You must be signed in to change notification settings - Fork 99
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
using namespace should be scoped to prevent name clashes, see issue #1170 #1171
Conversation
…okkos#1170 Introducing a whole namespace in a public is dangerous due to the potential for name clashes with other libraries. Removing such usage from trmm, trsm and trtri resolves build issues observed by users in Trilinos.
Status Flag 'Pre-Test Inspection' - Auto Inspected - Inspection Is Not Necessary for this Pull Request. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm thanks @lucbv ! I marked the removal locations in review notes of what I presume were the problematic public using statements
@@ -58,8 +58,6 @@ | |||
#include "KokkosBatched_Trmm_Decl.hpp" | |||
#include "KokkosBatched_Trmm_Serial_Impl.hpp" | |||
|
|||
using namespace KokkosBatched; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
culprit 1
@@ -57,8 +57,6 @@ | |||
#include "KokkosBatched_Trsm_Decl.hpp" | |||
#include "KokkosBatched_Trsm_Serial_Impl.hpp" | |||
|
|||
using namespace KokkosBatched; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
culprit 2
@@ -55,14 +55,17 @@ | |||
#include "KokkosBatched_Trtri_Decl.hpp" | |||
#include "KokkosBatched_Trtri_Serial_Impl.hpp" | |||
|
|||
using namespace KokkosBatched; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
culprit 3
Status Flag 'Pull Request AutoTester' - Testing Jenkins Projects: Pull Request Auto Testing STARTING (click to expand)Build InformationTest Name: KokkosKernels_PullRequest_GCC720_Light
Jenkins Parameters
Build InformationTest Name: KokkosKernels_PullRequest_GCC720
Jenkins Parameters
Build InformationTest Name: KokkosKernels_PullRequest_GCC720_Light_LayoutRight
Jenkins Parameters
Build InformationTest Name: KokkosKernels_PullRequest_Tpls_GCC720
Jenkins Parameters
Build InformationTest Name: KokkosKernels_PullRequest_Tpls_CUDA10
Jenkins Parameters
Build InformationTest Name: KokkosKernels_PullRequest_Tpls_INTEL18
Jenkins Parameters
Build InformationTest Name: KokkosKernels_PullRequest_Tpls_CUDA10_LayoutRight
Jenkins Parameters
Build InformationTest Name: KokkosKernels_PullRequest_Tpls_CUDA9
Jenkins Parameters
Build InformationTest Name: KokkosKernels_PullRequest_Tpls_GCC720_GCC740
Jenkins Parameters
Using Repos:
Pull Request Author: lucbv |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @lucbv !
Status Flag 'Pull Request AutoTester' - Jenkins Testing: all Jobs PASSED Pull Request Auto Testing has PASSED (click to expand)Build InformationTest Name: KokkosKernels_PullRequest_GCC720_Light
Jenkins Parameters
Build InformationTest Name: KokkosKernels_PullRequest_GCC720
Jenkins Parameters
Build InformationTest Name: KokkosKernels_PullRequest_GCC720_Light_LayoutRight
Jenkins Parameters
Build InformationTest Name: KokkosKernels_PullRequest_Tpls_GCC720
Jenkins Parameters
Build InformationTest Name: KokkosKernels_PullRequest_Tpls_CUDA10
Jenkins Parameters
Build InformationTest Name: KokkosKernels_PullRequest_Tpls_INTEL18
Jenkins Parameters
Build InformationTest Name: KokkosKernels_PullRequest_Tpls_CUDA10_LayoutRight
Jenkins Parameters
Build InformationTest Name: KokkosKernels_PullRequest_Tpls_CUDA9
Jenkins Parameters
Build InformationTest Name: KokkosKernels_PullRequest_Tpls_GCC720_GCC740
Jenkins Parameters
|
Status Flag 'Pre-Merge Inspection' - SUCCESS: The last commit to this Pull Request has been INSPECTED AND APPROVED by [ ndellingwood srajama1 ]! |
Status Flag 'Pull Request AutoTester' - Pull Request MUST BE MERGED MANUALLY BY Project Team - This Repo does not support Automerge |
@lucbv I'll cherry-pick to master and put in PR with these changes |
using namespace should be scoped to prevent name clashes, see issue kokkos#1170 (cherry picked from commit e9496bb)
#1173 is cherry-pick to master |
using namespace should be scoped to prevent name clashes, see issue kokkos#1170 (cherry picked from commit e9496bb)
matching changes to PR kokkos#1171 see issue kokkos#1170
Introducing a whole namespace in a public is dangerous due to the potential for name clashes with other libraries.
Removing such usage from trmm, trsm and trtri resolves build issues observed by users in Trilinos, see issue #1170