Skip to content

Commit cbbf24a

Browse files
committed
one more cleanup
1 parent 7e4255d commit cbbf24a

File tree

5 files changed

+6
-13
lines changed

5 files changed

+6
-13
lines changed

DirectProgramming/C++SYCL_FPGA/ReferenceDesigns/anr/src/intensity_sigma_lut.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#ifndef __INTENSITY_SIGMA_LUT_HPP__
22
#define __INTENSITY_SIGMA_LUT_HPP__
33

4-
#include <cmath>
54
#include <sycl/sycl.hpp>
65
#include <sycl/ext/intel/fpga_extensions.hpp>
76
#include <type_traits>

DirectProgramming/C++SYCL_FPGA/ReferenceDesigns/anr/src/qfp_exp_lut.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#ifndef __QFP_EXP_LUT_HPP__
22
#define __QFP_EXP_LUT_HPP__
33

4-
#include <cmath>
5-
64
#include "qfp.hpp"
75

86
// Included from DirectProgramming/C++SYCL_FPGA/include/

DirectProgramming/C++SYCL_FPGA/Tutorials/Features/ac_fixed/src/ac_fixed.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ void TestCalculateWithFloat(queue &q, const float &x, float &ret) {
7575
h.single_task<CalculateWithFloat>([=] {
7676
float sin_x = sinf(x[0]);
7777
float cos_x = cosf(x[0]);
78-
res[0] = sqrtf(sin_x * sin_x + cos_x * cos_x);
78+
res[0] = sycl::sqrtf(sin_x * sin_x + cos_x * cos_x);
7979
});
8080
});
8181
}

DirectProgramming/C++SYCL_FPGA/Tutorials/Features/experimental/device_global/src/device_global.cpp

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
//
44
// SPDX-License-Identifier: MIT
55
// =============================================================
6-
#include <cmath>
7-
86
#include <iostream>
97
#include <sycl/ext/intel/fpga_extensions.hpp>
108
#include <sycl/sycl.hpp>
@@ -15,13 +13,13 @@ constexpr size_t kNumIterations = 4;
1513
constexpr unsigned kNumWeightIncrements = 3;
1614
constexpr unsigned kVectorSize = 4;
1715

18-
namespace exp = sycl::ext::oneapi::experimental;
16+
namespace syclexp = sycl::ext::oneapi::experimental;
1917

20-
using WeightsDeviceGlobalProperties =
21-
decltype(exp::properties(exp::device_image_scope, exp::host_access_write));
18+
using WeightsDeviceGlobalProperties = decltype(syclexp::properties(
19+
syclexp::device_image_scope, syclexp::host_access_write));
2220

2321
// globally declared weights for the calculation
24-
exp::device_global<int[kVectorSize], WeightsDeviceGlobalProperties> weights;
22+
syclexp::device_global<int[kVectorSize], WeightsDeviceGlobalProperties> weights;
2523

2624
// Forward declare the kernel name in the global scope.
2725
// This FPGA best practice reduces name mangling in the optimization reports.
@@ -30,7 +28,6 @@ class Kernel;
3028
// Launch a kernel that does a weighted vector add
3129
// result = a + (weights * b)
3230
void WeightedVectorAdd(sycl::queue q, int *a, int *b, int *result) {
33-
3431
q.single_task<Kernel>([=]() [[intel::kernel_args_restrict]] {
3532
for (auto i = 0; i < kVectorSize; i++) {
3633
result[i] = a[i] + (weights[i] * b[i]);
@@ -47,7 +44,7 @@ int main() {
4744
auto selector = sycl::ext::intel::fpga_simulator_selector_v;
4845
#elif FPGA_HARDWARE
4946
auto selector = sycl::ext::intel::fpga_selector_v;
50-
#else // #if FPGA_EMULATOR
47+
#else // #if FPGA_EMULATOR
5148
auto selector = sycl::ext::intel::fpga_emulator_selector_v;
5249
#endif
5350

DirectProgramming/C++SYCL_FPGA/Tutorials/Features/private_copies/src/private_copies.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
//
44
// SPDX-License-Identifier: MIT
55
// =============================================================
6-
#include <cmath>
76

87
#include <array>
98
#include <iomanip>

0 commit comments

Comments
 (0)