Skip to content

Commit

Permalink
Remove erroneous 'omp simd' directive.
Browse files Browse the repository at this point in the history
  • Loading branch information
chuckyount committed Apr 10, 2024
1 parent 744cf82 commit f840cbf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/kernel/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1090,7 +1090,7 @@ single-stencil-tests:
$(MAKE) clean; $(STENCIL_TEST) stencil=test_empty_2d
$(MAKE) clean; $(STENCIL_TEST) stencil=test_2d YK_STENCIL_SUFFIX=-t1 $(call FOLD,x=2 y=2) inner_loop_dim=1
$(MAKE) clean; $(STENCIL_TEST) stencil=test_2d YK_STENCIL_SUFFIX=-t2 $(call FOLD,x=2 y=2) inner_loop_dim=2
$(MAKE) clean; $(STENCIL_TEST) stencil=test_2d YK_STENCIL_SUFFIX=-t3 arch=intel64 $(call FOLD,x=3 y=2) domain_dims=y,x YK_CXX=g++ mpi=0
$(MAKE) clean; $(STENCIL_TEST) stencil=test_2d YK_STENCIL_SUFFIX=-t3 arch=intel64 $(call FOLD,x=3 y=2) domain_dims=y,x
$(MAKE) clean; $(STENCIL_TEST) stencil=test_reverse_2d YK_STENCIL_SUFFIX=-t1 radius=1
$(MAKE) clean; $(STENCIL_TEST) stencil=test_stages_2d $(call FOLD,x=2 y=2)
$(MAKE) clean; $(STENCIL_TEST) stencil=test_misc_2d YK_STENCIL_SUFFIX=-t1 $(call FOLD,x=2 y=2) inner_misc_layout=0 outer_domain_layout=0
Expand Down
9 changes: 5 additions & 4 deletions src/kernel/lib/generic_var.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ namespace yask {
const T v = val;
T* RESTRICT e = elems;

#pragma omp simd
for (idx_t i = start; i < stop; i++)
e[i] = v;
});
Expand Down Expand Up @@ -179,9 +178,11 @@ namespace yask {
T* RESTRICT e = elems;
const T s = seed;

#pragma omp simd
for (idx_t i = start; i < stop; i++)
e[i] = s * T(imod_flr(i, wrap) + 1);
for (idx_t i = start; i < stop; i++) {
T v = s * T(imod_flr(i, wrap) + 1);
e[i] = v;
//cout << "e["<<i<<"] = "<< v <<endl;
}
});

// Also update the version on the device to the same sequence.
Expand Down

0 comments on commit f840cbf

Please sign in to comment.