Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,8 @@ nbproject
vlsvdiff_DP
vlsvextract_DP
compile_commands.json
libraries*/
library-build/
run_*/
!run_tests.sh
profile/
22 changes: 14 additions & 8 deletions spatial_cells/spatial_cell_gpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1002,14 +1002,20 @@
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];

Check warning on line 1006 in spatial_cells/spatial_cell_gpu.cpp

View workflow job for this annotation

GitHub Actions / build_TP_debug_ukkoGPU

pointer of type ‘void *’ used in arithmetic [-Wpointer-arith]

Check warning on line 1006 in spatial_cells/spatial_cell_gpu.cpp

View workflow job for this annotation

GitHub Actions / build_prod_debug_WA_ukkoGPU

pointer of type ‘void *’ used in arithmetic [-Wpointer-arith]

Check warning on line 1006 in spatial_cells/spatial_cell_gpu.cpp

View workflow job for this annotation

GitHub Actions / build_TP_ukkoGPU

pointer of type ‘void *’ used in arithmetic [-Wpointer-arith]
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;
Expand Down
Loading