Skip to content

Commit

Permalink
test/xpu_api/numerics/complex.number/complex.transcendentals/pow_scal…
Browse files Browse the repository at this point in the history
…ar_complex.pass.cpp - fix exception: Required aspect fp64 is not supported on the device
  • Loading branch information
SergeyKopienko committed Feb 5, 2025
1 parent 829586f commit edfa888
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/support/test_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@
#define _PSTL_TEST_COMPLEX_OP_ASINH_USING_DOUBLE _PSTL_TEST_COMPLEX_OP_USING_DOUBLE
#define _PSTL_TEST_COMPLEX_OP_LOG_USING_DOUBLE _PSTL_TEST_COMPLEX_OP_USING_DOUBLE
#define _PSTL_TEST_COMPLEX_OP_LOG10_USING_DOUBLE _PSTL_TEST_COMPLEX_OP_USING_DOUBLE
#define _PSTL_TEST_COMPLEX_OP_POW_SCALAR_COMPLEX_USING_DOUBLE _PSTL_TEST_COMPLEX_OP_USING_DOUBLE

// oneAPI DPC++ compiler 2025.0.0 and earlier is unable to eliminate a "dead" function call to an undefined function
// within a sycl kernel which MSVC uses to allow comparisons with literal zero without warning
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,12 @@ void test_edges()

ONEDPL_TEST_NUM_MAIN
{
#if !_PSTL_TEST_COMPLEX_OP_POW_SCALAR_COMPLEX_USING_DOUBLE
test<float>();
#else
IF_DOUBLE_SUPPORT(test<float>())
#endif

IF_DOUBLE_SUPPORT(test<double>())
IF_LONG_DOUBLE_SUPPORT(test<long double>())
IF_DOUBLE_SUPPORT(test_edges())
Expand Down

0 comments on commit edfa888

Please sign in to comment.