1
그래서 this ANL Training video을보고했다 그들은AVX-512CD (충돌 감지)가 원자 변수 액세스와 다른 점은 무엇입니까?
void Histogram (const float* age, int* const hist, const int n, const float group_width, const int m) {
const float oogw = 1.0f/group_width;
// Populating the histogram.
for(int i = 0; i < n; i++) {
// Calculating the index of the bin age[i] goes to.
const int j = (int) (age[i] * oogwflh);
// Incrementing the appropriate bin in the histogram.
hist[j]++;
}
}
그리고 루프가 verctorized 도착하는 방법을 보여줍니다. this 지시.
어떻게 원자와 다른 점이 있으며 나중에 컴파일 수준에서 (예 : POD 구조체와 같이 다른 항목에 대해) 충돌 감지 지원을 기대할 수 있습니까?