File tree Expand file tree Collapse file tree 3 files changed +6
-10
lines changed Expand file tree Collapse file tree 3 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,6 @@ SPDX-License-Identifier: BSD-3-Clause
41
41
42
42
using std::queue;
43
43
using std::vector;
44
- using sycl::floor;
45
44
using sycl::max;
46
45
using sycl::min;
47
46
@@ -88,9 +87,9 @@ GridAssignmentObject::GridAssignmentObject(const vector<MC_Vector> ¢ers)
88
87
89
88
double x = _centers.size () / centersPerCell / (lx * ly * lz);
90
89
x = pow (x, 1.0 / 3.0 );
91
- _nx = max (1 ., floor (x * lx));
92
- _ny = max (1 ., floor (x * ly));
93
- _nz = max (1 ., floor (x * lz));
90
+ _nx = max (1 ., sycl:: floor (x * lx));
91
+ _ny = max (1 ., sycl:: floor (x * ly));
92
+ _nz = max (1 ., sycl:: floor (x * lz));
94
93
_dx = lx / _nx;
95
94
_dy = ly / _ny;
96
95
_dz = lz / _nz;
Original file line number Diff line number Diff line change @@ -59,8 +59,6 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
59
59
#include " macros.hh" // current location of openMP wrappers.
60
60
#include " cudaUtils.hh"
61
61
62
- using sycl::ceil;
63
-
64
62
// ----------------------------------------------------------------------------------------------------------------------
65
63
// Construct a MonteCarlo object.
66
64
// ----------------------------------------------------------------------------------------------------------------------
@@ -135,7 +133,7 @@ MonteCarlo::MonteCarlo(const Parameters ¶ms)
135
133
{
136
134
const MaterialParameters &mp = matIter->second ;
137
135
double nuBar = params.crossSectionParams .at (mp.fissionCrossSection ).nuBar ;
138
- size_t nb = ceil (nuBar);
136
+ size_t nb = sycl:: ceil (nuBar);
139
137
size_t test_size = nb * (batch_size);
140
138
141
139
if (test_size > vector_size)
Original file line number Diff line number Diff line change @@ -59,7 +59,6 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
59
59
#include " EnergySpectrum.hh"
60
60
61
61
using std::pow;
62
- using sycl::log10;
63
62
64
63
#if defined(HAVE_SYCL)
65
64
extern sycl::queue sycl_device_queue; // global variable for device queue
@@ -111,7 +110,7 @@ public:
111
110
for (int ii = 0 ; ii < nGroups; ++ii)
112
111
{
113
112
double energy = (energies[ii] + energies[ii + 1 ]) / 2.0 ;
114
- _crossSection[ii] = sycl::pow< double > (10 , polynomial (log10 (energy)));
113
+ _crossSection[ii] = sycl::pow (10.0 , ( double ) polynomial (sycl:: log10 (energy)));
115
114
}
116
115
117
116
// Find the normalization value for the polynomial. This is the
@@ -398,7 +397,7 @@ public:
398
397
for (int ii = 0 ; ii < nGroups; ++ii)
399
398
{
400
399
double energy = (energies[ii] + energies[ii + 1 ]) / 2.0 ;
401
- _crossSection[ii] = sycl::pow< double > (10 , polynomial (log10 (energy)));
400
+ _crossSection[ii] = sycl::pow (10.0 , ( double ) polynomial (sycl:: log10 (energy)));
402
401
}
403
402
404
403
// Find the normalization value for the polynomial. This is the
You can’t perform that action at this time.
0 commit comments