Skip to content

Commit 55d058a

Browse files
committed
remove comment for mc_pi_usm
1 parent a7dbbed commit 55d058a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Libraries/oneMKL/monte_carlo_pi/mc_pi_usm.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,7 @@ double estimate_pi(sycl::queue& q, size_t n_points) {
6565
sycl::vec<float, 2> r;
6666
size_t count = 0;
6767
for(int i = 0; i < count_per_thread; i++) {
68-
// r.load(i + item.get_global_linear_id() * count_per_thread, sycl::global_ptr<float>(rng_ptr));
69-
r[0] = rng_ptr[2 * (i + item.get_global_linear_id() * count_per_thread)];
70-
r[1] = rng_ptr[2 * (i + item.get_global_linear_id() * count_per_thread) + 1];
68+
r.load(i + item.get_global_linear_id() * count_per_thread, sycl::global_ptr<float>(rng_ptr));
7169
if(sycl::length(r) <= 1.0f) {
7270
count += 1;
7371
}

0 commit comments

Comments
 (0)