Skip to content

Commit 023c83a

Browse files
authored
black_scholes: omit RNG device APIs on Windows (oneapi-src#153)
1 parent 017d1bf commit 023c83a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Libraries/oneMKL/black_scholes/black_scholes.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,10 @@ void run(int64_t nopt, sycl::device & dev) {
148148

149149
for (int var = 0; var < 4; ++var) {
150150

151+
#ifdef _WIN32
152+
if (var & 1) continue; // Skip RNG device APIs on Windows for now.
153+
#endif
154+
151155
std::fill(s0.begin(), s0.end(), static_cast<T>(0.0));
152156
std::fill(x.begin(), x.end(), static_cast<T>(0.0));
153157
std::fill(t.begin(), t.end(), static_cast<T>(0.0));

0 commit comments

Comments
 (0)