From 04158740521e4da4754e0f8f44092fcb8b898dac Mon Sep 17 00:00:00 2001 From: Mikael Huppunen Date: Tue, 9 Jun 2026 16:03:36 +0300 Subject: [PATCH 1/3] Restore gitignore --- .gitignore | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitignore b/.gitignore index b073e43735..9af1653da5 100644 --- a/.gitignore +++ b/.gitignore @@ -19,3 +19,8 @@ nbproject vlsvdiff_DP vlsvextract_DP compile_commands.json +libraries*/ +library-build/ +run_*/ +!run_tests.sh +profile/ \ No newline at end of file From d67a748624711780226963a8d6f9fbcc8f22430d Mon Sep 17 00:00:00 2001 From: Mikael Huppunen Date: Mon, 27 Jul 2026 17:51:26 +0300 Subject: [PATCH 2/3] Not making a new datatype in case of one displacement --- spatial_cells/spatial_cell_gpu.cpp | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/spatial_cells/spatial_cell_gpu.cpp b/spatial_cells/spatial_cell_gpu.cpp index 606c0a6794..4d19b2ada6 100644 --- a/spatial_cells/spatial_cell_gpu.cpp +++ b/spatial_cells/spatial_cell_gpu.cpp @@ -1002,14 +1002,20 @@ namespace spatial_cell { MPI_Datatype datatype; if (displacements.size() > 0) { - count = 1; - MPI_Type_create_hindexed( - displacements.size(), - &block_lengths[0], - &displacements[0], - MPI_BYTE, - &datatype - ); + if (displacements.size() == 1) { + address = address + displacements[0]; + count = block_lengths[0]; + datatype = MPI_BYTE; + } else { + count = 1; + MPI_Type_create_hindexed( + displacements.size(), + &block_lengths[0], + &displacements[0], + MPI_BYTE, + &datatype + ); + } } else { count = 0; datatype = MPI_BYTE; From 630a836c0d0408cbce969d7613acd17c717a53ba Mon Sep 17 00:00:00 2001 From: Mikael Huppunen Date: Tue, 4 Aug 2026 09:43:11 +0300 Subject: [PATCH 3/3] Added endline to gitignore --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 9af1653da5..a96cbe7db0 100644 --- a/.gitignore +++ b/.gitignore @@ -23,4 +23,4 @@ libraries*/ library-build/ run_*/ !run_tests.sh -profile/ \ No newline at end of file +profile/