File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- #ifdef AMREX_USE_CUDA
2- #include < cufft.h>
1+ #ifdef AMREX_USE_ML
32#include < torch/script.h>
4- #else
5- #include < fftw3.h>
6- #ifdef AMREX_USE_MPI
7- #include < fftw3-mpi.h>
8- #endif
93#endif
104
115#include < AMReX_MultiFab.H>
@@ -186,8 +180,7 @@ void WritePlotfile(MultiFab& Ms,
186180 const Real& time,
187181 const int & plt_step);
188182
189-
190-
183+ #ifdef AMREX_USE_ML
191184
192185at::Tensor PackMfieldToTensorDynamic (
193186 const amrex::Array<amrex::MultiFab, AMREX_SPACEDIM>& Mfield,
@@ -220,4 +213,6 @@ void MoveModuleToDevice(torch::jit::script::Module& m,
220213 const torch::Device& device);
221214
222215// Read expected_spatial = [nx, ny, nz] from normalizer module
223- amrex::IntVect GetExpectedSpatial (torch::jit::script::Module& x_norm_module);
216+ amrex::IntVect GetExpectedSpatial (torch::jit::script::Module& x_norm_module);
217+
218+ #endif
You can’t perform that action at this time.
0 commit comments