Skip to content

Commit 11d497d

Browse files
vmadananthvarsha-madananthJoeOsterericlars
authored
ONSAM-1419 - fixed sample still using deprecated namespace sycl::ONEAPI (#726)
* Adding mandelbrot sample to the repository Signed-off-by: vmadanan <[email protected]> * Adding changes to mandelbrot to remove libsycl-complex.so dependency * namespace change for Monte Carlo * Updated samples to newest coding guidelines * Updating samples- Mandelbrot, DCT and MonteCarlo with newest coding guidelines * Fixing warnings for DCT * Added ifdef to remove warnings * Fixed issues with mandelbrot/montecarlopi in debug/release * ONSAM-1414 Broken Link in Headers (#685) * Update Makefile * Update Makefile * Update Makefile * Update DCT.hpp * Update intrin_ftz_sample.cpp * Update merge_sort.cpp * Update intrin_double_sample.cpp * Update intrin_dot_sample.cpp * Update DCT.cpp * fix deprecation notice (#682) * Fixed warnings on using deprecated namespace sycl::ONEAPI Signed-off-by: vmadanan <[email protected]> Co-authored-by: varsha madananth <[email protected]> Co-authored-by: JoeOster <[email protected]> Co-authored-by: ericlars <[email protected]>
1 parent 180bb46 commit 11d497d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DirectProgramming/DPC++/MapReduce/MonteCarloPi/src/monte_carlo_pi.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ double MonteCarloPi(rgb image_plot[]) {
8787

8888
// Monte Carlo Procedure + Reduction
8989
h.parallel_for(nd_range<1>(num_wg * size_wg, size_wg),
90-
sycl::ONEAPI::reduction(total_acc, 0, std::plus<int>()),
90+
ext::oneapi::reduction(total_acc, 0, std::plus<int>()),
9191
[=](nd_item<1> it, auto& total_acc) {
9292
// Index for accessing buffers
9393
int i = it.get_global_id();

0 commit comments

Comments
 (0)