Skip to content

Commit 7145f41

Browse files
JoeOsterericlars
andauthored
Pul late changes from 2021.4 into Development branch (#686)
* 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) Co-authored-by: ericlars <eric.larson@intel.com>
1 parent 18310ad commit 7145f41

File tree

11 files changed

+31
-111
lines changed

11 files changed

+31
-111
lines changed

DirectProgramming/C++/CombinationalLogic/MandelbrotOMP/Makefile

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,3 @@
1-
#==============================================================
2-
#
3-
# SAMPLE SOURCE CODE - SUBJECT TO THE TERMS OF SAMPLE CODE LICENSE AGREEMENT,
4-
# http://software.intel.com/en-us/articles/intel-sample-source-code-license-agreement/
5-
#
6-
# Copyright Intel Corporation
7-
#
8-
# THIS FILE IS PROVIDED "AS IS" WITH NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT
9-
# NOT LIMITED TO ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
10-
# PURPOSE, NON-INFRINGEMENT OF INTELLECTUAL PROPERTY RIGHTS.
11-
#
12-
# =============================================================
131
CXX := icpc
142
SRCDIR := src
153
BUILDDIR := release

DirectProgramming/C++/CompilerInfrastructure/Intrinsics/Makefile

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,3 @@
1-
#==============================================================
2-
#
3-
# SAMPLE SOURCE CODE - SUBJECT TO THE TERMS OF SAMPLE CODE LICENSE AGREEMENT,
4-
# http://software.intel.com/en-us/articles/intel-sample-source-code-license-agreement/
5-
#
6-
# Copyright Intel Corporation
7-
#
8-
# THIS FILE IS PROVIDED "AS IS" WITH NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT
9-
# NOT LIMITED TO ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
10-
# PURPOSE, NON-INFRINGEMENT OF INTELLECTUAL PROPERTY RIGHTS.
11-
#
12-
# =============================================================
131
CC = icc
142
EXECS=intrin_dot_sample.exe intrin_double_sample.exe intrin_ftz_sample.exe
153
DBG_EXECS=intrin_dot_sample_dbg.exe intrin_double_sample_dbg.exe intrin_ftz_sample_dbg.exe

DirectProgramming/C++/CompilerInfrastructure/Intrinsics/src/intrin_dot_sample.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,3 @@
1-
//==============================================================
2-
//
3-
// SAMPLE SOURCE CODE - SUBJECT TO THE TERMS OF SAMPLE CODE LICENSE AGREEMENT,
4-
// http://software.intel.com/en-us/articles/intel-sample-source-code-license-agreement/
5-
//
6-
// Copyright 2016 Intel Corporation
7-
//
8-
// THIS FILE IS PROVIDED "AS IS" WITH NO WARRANTIES, EXPRESS OR IMPLIED,
9-
// INCLUDING BUT NOT LIMITED TO ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS
10-
// FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT OF INTELLECTUAL PROPERTY RIGHTS.
11-
//
12-
// =============================================================
131
/* [DESCRIPTION]
142
* This C code sample demonstrates how to use C, Intel(R) MMX(TM),
153
* Intel(R) Streaming SIMD Extensions 3 (Intel(R) SSE3),

DirectProgramming/C++/CompilerInfrastructure/Intrinsics/src/intrin_double_sample.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,3 @@
1-
//==============================================================
2-
//
3-
// SAMPLE SOURCE CODE - SUBJECT TO THE TERMS OF SAMPLE CODE LICENSE AGREEMENT,
4-
// http://software.intel.com/en-us/articles/intel-sample-source-code-license-agreement/
5-
//
6-
// Copyright 2016 Intel Corporation
7-
//
8-
// THIS FILE IS PROVIDED "AS IS" WITH NO WARRANTIES, EXPRESS OR IMPLIED,
9-
// INCLUDING BUT NOT LIMITED TO ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS
10-
// FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT OF INTELLECTUAL PROPERTY RIGHTS.
11-
//
12-
// =============================================================
131
/* [DESCRIPTION]
142
* This C code sample demonstrates how to use C in
153
* comparison with

DirectProgramming/C++/CompilerInfrastructure/Intrinsics/src/intrin_ftz_sample.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,3 @@
1-
//==============================================================
2-
//
3-
// SAMPLE SOURCE CODE - SUBJECT TO THE TERMS OF SAMPLE CODE LICENSE AGREEMENT,
4-
// http://software.intel.com/en-us/articles/intel-sample-source-code-license-agreement/
5-
//
6-
// Copyright 2017 Intel Corporation
7-
//
8-
// THIS FILE IS PROVIDED "AS IS" WITH NO WARRANTIES, EXPRESS OR IMPLIED,
9-
// INCLUDING BUT NOT LIMITED TO ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS
10-
// FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT OF INTELLECTUAL PROPERTY RIGHTS.
11-
//
12-
// =============================================================
131
/* [DESCRIPTION]
142
* This code sample demonstrates how to use the
153
* _MM_GET_FLUSH_ZERO_MODE() and _MM_GET_DENORMALS_ZERO_MODE()

DirectProgramming/C++/GraphTraversal/MergesortOMP/Makefile

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,3 @@
1-
#==============================================================
2-
#
3-
# SAMPLE SOURCE CODE - SUBJECT TO THE TERMS OF SAMPLE CODE LICENSE AGREEMENT,
4-
# http://software.intel.com/en-us/articles/intel-sample-source-code-license-agreement/
5-
#
6-
# Copyright Intel Corporation
7-
#
8-
# THIS FILE IS PROVIDED "AS IS" WITH NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT
9-
# NOT LIMITED TO ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
10-
# PURPOSE, NON-INFRINGEMENT OF INTELLECTUAL PROPERTY RIGHTS.
11-
#
12-
# =============================================================
131
CXX := icpc
142
SRCDIR := src
153
BUILDDIR := release

DirectProgramming/C++/GraphTraversal/MergesortOMP/src/merge_sort.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,3 @@
1-
//==============================================================
2-
//
3-
// SAMPLE SOURCE CODE - SUBJECT TO THE TERMS OF SAMPLE CODE LICENSE AGREEMENT,
4-
// http://software.intel.com/en-us/articles/intel-sample-source-code-license-agreement/
5-
//
6-
// Copyright Intel Corporation
7-
//
8-
// THIS FILE IS PROVIDED "AS IS" WITH NO WARRANTIES, EXPRESS OR IMPLIED,
9-
// INCLUDING BUT NOT LIMITED TO ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS
10-
// FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT OF INTELLECTUAL PROPERTY RIGHTS.
11-
//
12-
// =============================================================
131
#define _CRT_SECURE_NO_DEPRECATE
142
#include <omp.h>
153

DirectProgramming/DPC++/SpectralMethods/DiscreteCosineTransform/src/DCT.cpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,3 @@
1-
//=======================================================================================
2-
//
3-
// SAMPLE SOURCE CODE - SUBJECT TO THE TERMS OF SAMPLE CODE LICENSE AGREEMENT,
4-
// http://software.intel.com/en-us/articles/intel-sample-source-code-license-agreement/
5-
//
6-
// Copyright Intel Corporation
7-
//
8-
// THIS FILE IS PROVIDED "AS IS" WITH NO WARRANTIES, EXPRESS OR IMPLIED,
9-
// INCLUDING BUT NOT LIMITED TO ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS
10-
// FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT OF INTELLECTUAL PROPERTY RIGHTS.
11-
//
12-
// ======================================================================================
13-
141
#include "DCT.hpp"
152

163
#include <CL/sycl.hpp>

DirectProgramming/DPC++/SpectralMethods/DiscreteCosineTransform/src/DCT.hpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,3 @@
1-
//=======================================================================================
2-
//
3-
// SAMPLE SOURCE CODE - SUBJECT TO THE TERMS OF SAMPLE CODE LICENSE AGREEMENT,
4-
// http://software.intel.com/en-us/articles/intel-sample-source-code-license-agreement/
5-
//
6-
// Copyright Intel Corporation
7-
//
8-
// THIS FILE IS PROVIDED "AS IS" WITH NO WARRANTIES, EXPRESS OR IMPLIED,
9-
// INCLUDING BUT NOT LIMITED TO ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS
10-
// FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT OF INTELLECTUAL PROPERTY RIGHTS.
11-
//
12-
// ======================================================================================
131
#pragma pack(push, 1)
142

153
// This is the data structure which is going to represent one pixel value in RGB

Libraries/oneMKL/black_scholes/black_scholes.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ using namespace oneapi;
2727

2828
#include "input_generator.hpp"
2929
#include "black_scholes.hpp"
30+
#include "code_wrapper.tpp"
3031

3132
namespace {
3233

@@ -83,7 +84,7 @@ void async_sycl_error(sycl::exception_list el) {
8384
try {
8485
std::rethrow_exception(*l);
8586
} catch(const sycl::exception & e) {
86-
std::cerr << "SYCL exception occured with code " << e.get_cl_code() << " with " << e.what() << std::endl;
87+
std::cerr << "SYCL exception occured with code " << code_wrapper(e) << " with " << e.what() << std::endl;
8788
}
8889
}
8990
}
@@ -184,7 +185,7 @@ int sample_run(int64_t nopt) {
184185
}
185186
}
186187
catch (sycl::exception const & re) {
187-
std::cerr << "SYCL exception occured with code " << re.get_cl_code() << " with " << re.what() << std::endl;
188+
std::cerr << "SYCL exception occured with code " << code_wrapper(re) << " with " << re.what() << std::endl;
188189
return -1;
189190
}
190191

0 commit comments

Comments
 (0)