-
Notifications
You must be signed in to change notification settings - Fork 19
Moves DomainView to datatype namespace
#1679
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
base: devel
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,9 @@ | ||
| #pragma once | ||
|
|
||
| #include "specfem/constants.hpp" | ||
| #include "specfem/datatype.hpp" | ||
| #include "specfem/element.hpp" | ||
| #include <Kokkos_Core.hpp> | ||
| #include <Kokkos_SIMD.hpp> | ||
|
|
||
| namespace specfem { | ||
|
|
||
|
|
@@ -33,11 +33,11 @@ constexpr int chunk_size = impl::cuda_chunk_size; | |
| constexpr int storage_chunk_size = impl::hip_chunk_size; | ||
| constexpr int chunk_size = impl::hip_chunk_size; | ||
| #elif defined(KOKKOS_ENABLE_OPENMP) | ||
| constexpr int simd_size = specfem::datatype::simd<type_real, true>::size(); | ||
| constexpr int simd_size = Kokkos::Experimental::simd<type_real>::size(); | ||
|
||
| constexpr int storage_chunk_size = impl::openmp_chunk_size * simd_size; | ||
| constexpr int chunk_size = impl::openmp_chunk_size; | ||
| #else | ||
| constexpr int simd_size = specfem::datatype::simd<type_real, true>::size(); | ||
| constexpr int simd_size = Kokkos::Experimental::simd<type_real>::size(); | ||
|
||
| constexpr int storage_chunk_size = impl::serial_chunk_size * simd_size; | ||
| constexpr int chunk_size = impl::serial_chunk_size; | ||
| #endif | ||
|
|
||
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.
Duplicate include statement. The line
#include "specfem/element.hpp"appears twice (lines 4 and 5). Remove one of these duplicate includes.