File tree Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change 33#include < AMReX.H>
44#include < AMReX_Vector.H>
55#include < AMReX_ParmParse.H>
6+ #include < AMReX_SIMD.H>
67
78#include < string>
89
@@ -61,7 +62,7 @@ void init_AMReX(py::module& m)
6162#else
6263 return false ;
6364#endif
64- })
65+ })
6566 .def_property_readonly_static (
6667 " have_omp" ,
6768 [](py::object){
@@ -70,7 +71,21 @@ void init_AMReX(py::module& m)
7071#else
7172 return false ;
7273#endif
73- })
74+ })
75+ .def_property_readonly_static (
76+ " have_simd" ,
77+ [](py::object const &){
78+ #ifdef AMREX_USE_SIMD
79+ return true ;
80+ #else
81+ return false ;
82+ #endif
83+ })
84+ .def_property_readonly_static (
85+ " simd_size" ,
86+ [](py::object const &){
87+ return amrex::simd::native_simd_size_real;
88+ })
7489 .def_property_readonly_static (
7590 " gpu_backend" ,
7691 [](py::object){
You can’t perform that action at this time.
0 commit comments