Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: explicit comparison with infinity in fast floating point mode [-Werror,-Wtautological-constant-compare] #13

Open
TApplencourt opened this issue Feb 27, 2023 · 1 comment

Comments

@TApplencourt
Copy link

TApplencourt commented Feb 27, 2023

When building the repo with icpx the test_case/test_case_statistics.cpp compile fail with

 error: explicit comparison with infinity in fast floating point mode [-Werror,-Wtautological-constant-compare]

Possible solution:

  • Disable tautological-constant-compare
  • Set -00 flags globally
  • Disable fast-math for the particulars files
@al42and
Copy link

al42and commented Mar 3, 2023

With oneAPI 2023.0, there are more issues:

icpx: error: use of 'dpcpp' is deprecated and will be removed in a future release. Use 'icpx -fsycl' [-Werror,-Wdeprecated]

as well as multiple SYCL-related deprecation warnings like

/home/aland/compute-benchmarks/source/framework/sycl/sycl.h:22:22: warning: 'device_selector' is deprecated: Use SYCL 2020 callable device selectors instead. [-Wdeprecated-declarations]

/home/aland/compute-benchmarks/source/framework/sycl/utility/print_device_info_sycl.inl:27:21: warning: 'host' is deprecated: 'host' backend is no longer supported [-Wdeprecated-declarations]

and generic "compiler confused by testing framework" warnings like

/home/aland/compute-benchmarks/source/benchmarks/memory_benchmark/gtest/usm_copy_immediate.cpp:13:56: warning: unused variable 'registerTestCase' [-Wunused-const-variable]
static const inline RegisterTestCase<UsmCopyImmediate> registerTestCase{};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants