-
Notifications
You must be signed in to change notification settings - Fork 91
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
Updated LvArray and added [email protected] host config. #1003
Conversation
970fa74
to
8cc4bbc
Compare
7d82995
to
0f540b0
Compare
|
||
// For some reason this needs to be defined when using cuda | ||
#if defined( __CUDACC__) | ||
#define KOKKOS_ENABLE_SERIAL_ATOMICS |
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.
This fixed the issue I was having with Trilinos and cuda.
Now passing the travis tests, only the submodule check fails. |
@@ -144,15 +144,15 @@ using ViewTypeConst = typename LvArray::GetViewTypeConst< T >::type &; | |||
|
|||
/// True if T is or inherits from std::string. | |||
template< typename T > | |||
constexpr bool is_string = std::is_base_of_v< std::string, T >; | |||
constexpr bool is_string = std::is_base_of< std::string, T >::value; |
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.
Was this really not in clang10?
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.
No I had it in LvArray
, but I thought it's probably best to take it out.
@@ -1334,7 +1330,14 @@ void SiloFile::WriteElementRegionSilo( ElementRegionBase const & elemRegion, | |||
sourceWrapper = Wrapper< arrayType >::cast( *(viewPointers[esr][fieldName])); | |||
typename arrayType::ViewTypeConst const & sourceArray = sourceWrapper.reference(); | |||
|
|||
targetArray.copy( counter, sourceArray ); | |||
localIndex const offset = counter * targetArray.strides()[ 0 ]; |
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.
Is this a behavioral change?
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.
No I just thought it's probably best if this function wasn't in LvArray::ArraySlice
. As implemented I don't think it would work for permuted arrays and this was the only place it was called from.
m_elementSubRegionIndices.appendArray( elementSubRegionIndices, numPts ); | ||
m_elementIndices.appendArray( elementIndices, numPts ); | ||
m_weights.appendArray( weights, numPts ); | ||
m_elementRegionIndices.appendArray( elementRegionIndices, elementRegionIndices + numPts ); |
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.
Did the function change or is this a behavioral change?
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.
appendArray
now takes iterators instead of a pointer and a size.
@@ -121,7 +121,6 @@ void GMRESsolver< VECTOR >::solve( Vector const & b, | |||
|
|||
// Create upper Hessenberg matrix | |||
array2d< real64, MatrixLayout::COL_MAJOR_PERM > H( m_maxRestart + 1, m_maxRestart ); | |||
H = 0.0; |
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.
are these always initialized to zero?
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.
Elements in an LvArray::Array
or an LvArray
class are initialized with T()
when resizing (or creating) unless you call resizeWithoutInitializationOrDestruction()
. For numeric types T()
is 0.
src/coreComponents/physicsSolvers/fluidFlow/ProppantTransport.cpp
Outdated
Show resolved
Hide resolved
src/coreComponents/physicsSolvers/fluidFlow/ProppantTransport.cpp
Outdated
Show resolved
Hide resolved
src/coreComponents/physicsSolvers/fluidFlow/ProppantTransport.cpp
Outdated
Show resolved
Hide resolved
src/coreComponents/physicsSolvers/fluidFlow/ProppantTransport.cpp
Outdated
Show resolved
Hide resolved
src/coreComponents/physicsSolvers/fluidFlow/ProppantTransport.cpp
Outdated
Show resolved
Hide resolved
d084753
to
9b23b2e
Compare
9b23b2e
to
0eff133
Compare
Related to:
https://github.com/GEOSX/cxx-utilities/pull/164
GEOS-DEV/GEOSX_PTP#17
GEOS-DEV/thirdPartyLibs#114