|
25 | 25 | // Return : YT_SUCCESS or YT_FAIL |
26 | 26 | //------------------------------------------------------------------------------------------------------- |
27 | 27 | int get_npy_dtype(yt_dtype data_type, int* npy_dtype) { |
28 | | - SET_TIMER(__PRETTY_FUNCTION__); |
29 | | - |
30 | 28 | switch (data_type) { |
31 | 29 | case YT_FLOAT: |
32 | 30 | *npy_dtype = NPY_FLOAT; |
@@ -103,8 +101,6 @@ int get_npy_dtype(yt_dtype data_type, int* npy_dtype) { |
103 | 101 | // Return : YT_SUCCESS or YT_FAIL |
104 | 102 | //------------------------------------------------------------------------------------------------------- |
105 | 103 | int get_yt_dtype_from_npy(int npy_dtype, yt_dtype* data_dtype) { |
106 | | - SET_TIMER(__PRETTY_FUNCTION__); |
107 | | - |
108 | 104 | switch (npy_dtype) { |
109 | 105 | case NPY_FLOAT: |
110 | 106 | *data_dtype = YT_FLOAT; |
@@ -173,8 +169,6 @@ int get_yt_dtype_from_npy(int npy_dtype, yt_dtype* data_dtype) { |
173 | 169 | // Return : YT_SUCCESS or YT_FAIL |
174 | 170 | //------------------------------------------------------------------------------------------------------- |
175 | 171 | int get_mpi_dtype(yt_dtype data_type, MPI_Datatype* mpi_dtype) { |
176 | | - SET_TIMER(__PRETTY_FUNCTION__); |
177 | | - |
178 | 172 | switch (data_type) { |
179 | 173 | case YT_FLOAT: |
180 | 174 | *mpi_dtype = MPI_FLOAT; |
@@ -258,8 +252,6 @@ int get_mpi_dtype(yt_dtype data_type, MPI_Datatype* mpi_dtype) { |
258 | 252 | // Return : YT_SUCCESS or YT_FAIL |
259 | 253 | //------------------------------------------------------------------------------------------------------- |
260 | 254 | int get_dtype_size(yt_dtype data_type, int* dtype_size) { |
261 | | - SET_TIMER(__PRETTY_FUNCTION__); |
262 | | - |
263 | 255 | switch (data_type) { |
264 | 256 | case YT_FLOAT: |
265 | 257 | *dtype_size = sizeof(float); |
@@ -343,8 +335,6 @@ int get_dtype_size(yt_dtype data_type, int* dtype_size) { |
343 | 335 | // Return : YT_SUCCESS or YT_FAIL |
344 | 336 | //------------------------------------------------------------------------------------------------------- |
345 | 337 | int get_dtype_typeid(yt_dtype data_type, const std::type_info** dtype_id) { |
346 | | - SET_TIMER(__PRETTY_FUNCTION__); |
347 | | - |
348 | 338 | switch (data_type) { |
349 | 339 | case YT_FLOAT: |
350 | 340 | *dtype_id = &typeid(float); |
@@ -430,8 +420,6 @@ int get_dtype_typeid(yt_dtype data_type, const std::type_info** dtype_id) { |
430 | 420 | // Return : YT_SUCCESS or YT_FAIL |
431 | 421 | //------------------------------------------------------------------------------------------------------- |
432 | 422 | int get_dtype_allocation(yt_dtype data_type, unsigned long length, void** data_ptr) { |
433 | | - SET_TIMER(__PRETTY_FUNCTION__); |
434 | | - |
435 | 423 | switch (data_type) { |
436 | 424 | case YT_FLOAT: |
437 | 425 | *data_ptr = malloc(length * sizeof(float)); |
@@ -532,8 +520,6 @@ int get_dtype_allocation(yt_dtype data_type, unsigned long length, void** data_p |
532 | 520 | //------------------------------------------------------------------------------------------------------- |
533 | 521 | int big_MPI_Get_dtype(void* recv_buff, long data_len, yt_dtype* data_dtype, MPI_Datatype* mpi_dtype, int get_rank, |
534 | 522 | MPI_Aint base_address, MPI_Win* window) { |
535 | | - SET_TIMER(__PRETTY_FUNCTION__); |
536 | | - |
537 | 523 | switch (*data_dtype) { |
538 | 524 | case YT_FLOAT: |
539 | 525 | return big_MPI_Get<float>(recv_buff, data_len, mpi_dtype, get_rank, base_address, window); |
|
0 commit comments