Open cwsmith opened 5 years ago
Moving the product into a variable produces the same error.
git diff
diff --git a/support/SellCSigma.h b/support/SellCSigma.h
index a19170f..022a7cc 100644
--- a/support/SellCSigma.h
+++ b/support/SellCSigma.h
@@ -1150,7 +1150,8 @@ void SellCSigma<DataTypes, ExecSpace>::parallel_for(FunctionType& fn, std::strin
const lid_t row = slice_to_chunk_cpy(slice) * team_size + slice_row;
const lid_t element_id = row_to_element_cpy(row);
Kokkos::parallel_for(Kokkos::ThreadVectorRange(thread, rowLen), [&] (lid_t& p) {
- const lid_t particle_id = start+(p*team_size);
+ const lid_t pteamsz = p*team_size;
+ const lid_t particle_id = start + pteamsz;
const lid_t mask = particle_mask_cpy[particle_id];
(*fn_d)(element_id, particle_id, mask);
});
autofs/nccs-svm1_proj/phy122/cws/develop/particle_structures/test/typeTest.cpp:65:28: required from here
/autofs/nccs-svm1_proj/phy122/cws/develop/particle_structures/support/SellCSigma.h:1153:25: internal compiler error: in maybe_undo_parenthesized_ref, at cp/semantics.c:1739
const lid_t pteamsz = p*team_size;
~~^~~~~~~~~~~~~
0x102ed143 maybe_undo_parenthesized_ref(tree_node*)
/sw/summit/gcc/7.4.0/src/gcc-7.4.0/gcc/cp/semantics.c:1738
The same error exists when building the stack on blockade using gcc/7.3.0-bt47fwr and cuda-10.1
On Summit using GCC 7.4, cuda/10.1.168, and Kokkos
develop
(version 3.0), there is an ICE (internal compiler error) while compilingparticle_structures/test/typeTest.cpp
in the SCSparallel_for
macro.particle_structures
7749497
builds successfully against Kokkosmaster
(2983b80) using GCC 7.4 and cuda/10.1.168 on Summit.environment
repo hashes
kokkos: 9597d0c (
develop
branch) particle_structures: aa06763cmake commands
kokkos
particle_structures
compilation command and error