Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Commit

Permalink
Merge pull request #606 from masterleinad/fix_dtk_release
Browse files Browse the repository at this point in the history
Fix compiling with gcc-13
  • Loading branch information
masterleinad committed Oct 14, 2023
2 parents 60a4cbd + 69ad3d7 commit bfb7673
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
5 changes: 0 additions & 5 deletions packages/Utils/src/DTK_ConfigDefs.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,8 @@

#include <string>

namespace DataTransferKit
{

#include "DTK_Types.h"

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

} // namespace DataTransferKit

#endif // #ifndef DTK_CONFIGDEFS_HPP
6 changes: 2 additions & 4 deletions packages/Utils/src/DTK_Core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ void initKokkos( Args &&... args )
// Kokkos doesn't have a global is_initialized(). However,
// Kokkos::initialize() always initializes the default execution
// space, so it suffices to check whether that was initialized.
const bool kokkosIsInitialized =
Kokkos::DefaultExecutionSpace::impl_is_initialized();
const bool kokkosIsInitialized = Kokkos::is_initialized();

if ( !kokkosIsInitialized )
{
Expand All @@ -45,8 +44,7 @@ void initKokkos( Args &&... args )
}
}

const bool kokkosIsInitialized =
Kokkos::DefaultExecutionSpace::impl_is_initialized();
const bool kokkosIsInitialized = Kokkos::is_initialized();

if ( !kokkosIsInitialized )
throw DataTransferKitException( "At the end of initKokkos, Kokkos"
Expand Down
4 changes: 4 additions & 0 deletions packages/Utils/src/DTK_Types.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
#endif
#endif

namespace DataTransferKit {

//! Coordinate typedef.
typedef double Coordinate;

Expand All @@ -32,4 +34,6 @@ typedef int LocalOrdinal;
//! Global ordinal typedef.
typedef long long GlobalOrdinal;

}

#endif // DTK_TYPES_H

0 comments on commit bfb7673

Please sign in to comment.