Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Markus Holzer
waLBerla
Commits
a43f9181
Commit
a43f9181
authored
Mar 25, 2022
by
Dominik Thoennes
Committed by
Markus Holzer
Mar 25, 2022
Browse files
Resolve "Test cuda and codegen in CI"
parent
2c1a52f4
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
a43f9181
This diff is collapsed.
Click to expand it.
src/core/cell/Cell.h
View file @
a43f9181
...
...
@@ -338,7 +338,7 @@ inline std::size_t hash_value( const Cell & cell )
{
std
::
size_t
seed
;
if
constexpr
(
sizeof
(
std
::
size_t
)
>=
8
)
if
(
sizeof
(
std
::
size_t
)
>=
8
)
{
seed
=
(
static_cast
<
std
::
size_t
>
(
cell
.
x
())
<<
42
)
+
(
static_cast
<
std
::
size_t
>
(
cell
.
y
())
<<
21
)
+
...
...
src/core/math/Vector2.h
View file @
a43f9181
...
...
@@ -1561,12 +1561,12 @@ struct Vector2LexicographicalyLess
// \param v The vector the hash is computed for.
// \returns A hash for the entire Vector2.
*/
template
<
typename
T
,
typename
Enable
=
std
::
enable_if_t
<
std
::
is_integral
_v
<
T
>
>
>
template
<
typename
T
,
typename
Enable
=
std
::
enable_if_t
<
std
::
is_integral
<
T
>
::
value
>
>
std
::
size_t
hash_value
(
const
Vector2
<
T
>
&
v
)
{
std
::
size_t
seed
;
if
constexpr
(
sizeof
(
std
::
size_t
)
>=
8
)
if
(
sizeof
(
std
::
size_t
)
>=
8
)
{
seed
=
(
static_cast
<
std
::
size_t
>
(
v
[
0
])
<<
42
)
+
(
static_cast
<
std
::
size_t
>
(
v
[
1
])
<<
21
);
...
...
src/core/math/Vector3.h
View file @
a43f9181
...
...
@@ -1847,12 +1847,12 @@ struct Vector3LexicographicalyLess
// \param v The vector the hash is computed for.
// \returns A hash for the entire Vector3.
*/
template
<
typename
T
,
typename
Enable
=
std
::
enable_if_t
<
std
::
is_integral
_v
<
T
>
>
>
template
<
typename
T
,
typename
Enable
=
std
::
enable_if_t
<
std
::
is_integral
<
T
>
::
value
>
>
std
::
size_t
hash_value
(
const
Vector3
<
T
>
&
v
)
{
std
::
size_t
seed
;
if
constexpr
(
sizeof
(
std
::
size_t
)
>=
8
)
if
(
sizeof
(
std
::
size_t
)
>=
8
)
{
seed
=
(
static_cast
<
std
::
size_t
>
(
v
[
0
])
<<
42
)
+
(
static_cast
<
std
::
size_t
>
(
v
[
1
])
<<
21
)
+
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment