-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[cpp] Start metal compute sim3d engine
- Loading branch information
1 parent
3f88bb8
commit 3aabd93
Showing
8 changed files
with
481 additions
and
214 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// SPDX-License-Identifier: MIT | ||
// SPDX-FileCopyrightText: 2024 Tobias Hienzsch | ||
|
||
#pragma once | ||
|
||
#if not defined(PFFDTD_HAS_METAL) | ||
#error "METAL must be enabled in CMake via PFFDTD_ENABLE_METAL" | ||
#endif | ||
|
||
#include "pffdtd/mdspan.hpp" | ||
#include "pffdtd/simulation_2d.hpp" | ||
|
||
namespace pffdtd { | ||
|
||
struct EngineMETAL2D { | ||
[[nodiscard]] auto operator()(Simulation2D const& sim) const -> stdex::mdarray<double, stdex::dextents<size_t, 2>>; | ||
}; | ||
|
||
} // namespace pffdtd |
Oops, something went wrong.