Skip to content

Commit 50343b4

Browse files
author
jgtong
authored
Merge pull request #55 from oneapi-src/jgt/reverse_time_migration/fix_ndrange
[rtm] Update launch kernel parameters for Cross Correlation
2 parents b2aff3f + 0ebb0ec commit 50343b4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

reverse_time_migration/libs/SeismicOperations/src/components/concrete/oneapi/migration-accommodators/CrossCorrelationKernel.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,9 @@ void CrossCorrelationKernel::Stack() {
131131
});
132132
} else {
133133
cgh.parallel_for(
134-
global_nd_range, [=](sycl::id<2> idx) {
135-
uint offset_window = idx[0] + idx[1] * wnx;
136-
uint offset = idx[0] + idx[1] * nx;
134+
global_nd_range, [=](sycl::nd_item<2> it) {
135+
uint offset_window = it.get_global_id(0) + it.get_global_id(1) * wnx;
136+
uint offset = it.get_global_id(0) + it.get_global_id(1) * nx;
137137
stack_buf[offset] += cor_buf[offset_window];
138138
stack_src[offset] += cor_src[offset_window];
139139
stack_rcv[offset] += cor_rcv[offset_window];

0 commit comments

Comments
 (0)