Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit bfb7673

Browse files
authoredOct 14, 2023
Merge pull request #606 from masterleinad/fix_dtk_release
Fix compiling with gcc-13
2 parents 60a4cbd + 69ad3d7 commit bfb7673

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed
 

‎packages/Utils/src/DTK_ConfigDefs.hpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,8 @@
2121

2222
#include <string>
2323

24-
namespace DataTransferKit
25-
{
26-
2724
#include "DTK_Types.h"
2825

2926
#define DTK_MARK_REGION( x ) std::string( "DTK_" ) + x
3027

31-
} // namespace DataTransferKit
32-
3328
#endif // #ifndef DTK_CONFIGDEFS_HPP

‎packages/Utils/src/DTK_Core.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ void initKokkos( Args &&... args )
3333
// Kokkos doesn't have a global is_initialized(). However,
3434
// Kokkos::initialize() always initializes the default execution
3535
// space, so it suffices to check whether that was initialized.
36-
const bool kokkosIsInitialized =
37-
Kokkos::DefaultExecutionSpace::impl_is_initialized();
36+
const bool kokkosIsInitialized = Kokkos::is_initialized();
3837

3938
if ( !kokkosIsInitialized )
4039
{
@@ -45,8 +44,7 @@ void initKokkos( Args &&... args )
4544
}
4645
}
4746

48-
const bool kokkosIsInitialized =
49-
Kokkos::DefaultExecutionSpace::impl_is_initialized();
47+
const bool kokkosIsInitialized = Kokkos::is_initialized();
5048

5149
if ( !kokkosIsInitialized )
5250
throw DataTransferKitException( "At the end of initKokkos, Kokkos"

‎packages/Utils/src/DTK_Types.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
#endif
2424
#endif
2525

26+
namespace DataTransferKit {
27+
2628
//! Coordinate typedef.
2729
typedef double Coordinate;
2830

@@ -32,4 +34,6 @@ typedef int LocalOrdinal;
3234
//! Global ordinal typedef.
3335
typedef long long GlobalOrdinal;
3436

37+
}
38+
3539
#endif // DTK_TYPES_H

0 commit comments

Comments
 (0)
This repository has been archived.