Closed cindytsai closed 1 year ago
grid_levels
yt_getGridInfo_*
libyt
yt_getGridInfo_FieldData
PyArray_DATA
PyArray_DIMS
PyArray_DESCR
particle_count_list
grid_particle_count
libyt.h
grids_local
g_param_yt
yt_commit
libyt.grid_data
yt
_initialize_grid_arrays
_parse_index
long
yt_hierarchy_mpi_type
yt_rma_grid_info_mpi_type
yt_rma_particle_info_mpi_type
example
YT_ERROR
MyRank
MySize
no_locks
Finally!
Improve Memory Usage Efficiency and Other Miscellaneous
Improve Memory Usage Efficiency
grid_levels
from NPY_LONG to NPY_INT. (allocate_hierarchy.cpp, append_grid.cpp)Look up grid info API using NumPy API
yt_getGridInfo_*
look up inlibyt
Python module.yt_getGridInfo_FieldData
.PyArray_DATA
,PyArray_DIMS
,PyArray_DESCR
particle_count_list
: load each ptype separately, and then sum them up in libyt frontend.grid_particle_count
through frontend. (data_structures.py, yt_commit.cpp, )libyt.h
.grids_local
underg_param_yt
, onceyt_commit
is done.A Better Way to Gather and Pass Hierarchy to Python
libyt.grid_data
.libyt
's hierarchy directly inyt
._initialize_grid_arrays
_parse_index
libyt
's hierarchy new allocated buffer.long
, since we now assign libyt allocated array in yt frontend.Other Miscellaneous
yt_hierarchy_mpi_type
initialize once only. (yt_commit_grids.cpp)yt_rma_grid_info_mpi_type
initialize once only. (yt_rma_field.cpp)yt_rma_particle_info_mpi_type
initialize once only. (yt_rma_particle.cpp)example
more simple.libyt
API.YT_ERROR
: you want to implement your new yt_dtype, you should modify both yt_dtype Enum and get_npy_dtype function.MyRank
andMySize
global.RMA
no_locks
, do I even need that.Bug
libyt
unable to finalize successfully on twnia3.