mirror of
https://github.com/intel/llvm.git
synced 2026-01-26 21:53:12 +08:00
[Offload] Update test to use target parallel for reduction
Re-enable test disabled in 1bf1f93d with a fix.
This commit is contained in:
@@ -15,7 +15,7 @@ int main() {
|
||||
}
|
||||
|
||||
int sum = 0;
|
||||
//#pragma omp target reduction(+ : sum) is_device_ptr(device_ptr)
|
||||
#pragma omp target parallel for reduction(+ : sum) is_device_ptr(device_ptr)
|
||||
for (int i = 0; i < N; ++i)
|
||||
sum += device_ptr[i];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user