You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I have following code in my function I get enzyme segfault (see below):
std::vector<int> species_j_indices;
for (int i = 0; i < number_of_neighbors; i++) {
if (species[neighbor_lists[i]] == zj) {
species_j_indices.push_back(i);
n_neighbors_zj++;
}
}
Whereas the following workaround, which does not use std::vector.push_back() works fine
std::vector<int> species_j_indices(MAX_NEIGHBORS, -1);
int i_neigh_j = 0;
for (int i = 0; i < number_of_neighbors; i++) {
if (species[neighbor_lists[i]] == zj) {
species_j_indices[i_neigh_j] = i;
n_neighbors_zj++;
i_neigh_j++;
}
}
Also I see lot of activity on C++ sugar for enzyme. But the branch seem to be deleted. Is there someplace I can start? Any way I can help (documentation/ examples etc)?
When I have following code in my function I get enzyme segfault (see below):
Whereas the following workaround, which does not use
std::vector.push_back()
works fineAlso I see lot of activity on C++ sugar for enzyme. But the branch seem to be deleted. Is there someplace I can start? Any way I can help (documentation/ examples etc)?
stack trace of segfault:
The text was updated successfully, but these errors were encountered: