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

Enable half/double cmake options #65

Conversation

yuriykoch
Copy link
Contributor

Enable cmake options filtering out half/double tests at compile time:

  • SYCL_CTS_ENABLE_HALF_TESTS
  • SYCL_CTS_ENABLE_DOUBLE_TESTS

Default option values are switched to ON, because:

  • neither SYCL_CTS_ENABLE_DOUBLE_TESTS nor SYCL_CTS_ENABLE_HALF_TESTS
    affect any of the current tests in the CTS:
    tests currently behave like if these options are ON by default
  • half types should be available at the compile time according to the
    SYCL 1.2.1, 5.1 and SYCL 2020, D.6.1
  • in case there is no fp16/fp64 extension available for device, a
    feature_not_supported exception should be thrown at the runtime
  • double types should be available at the compile time according to
    the SYCL 1.2.1, 4.10.1 and 6.5
  • according to the SYCL 2020, 6.5 an implementation may not raise an
    error in case application did not specifically ask to submit the
    kernel to the specific device or to compile the kernel for it

Options are enabled for new fp16/fp64 tests naming convention only;
any elder tests can be modified to use macro defines if required

Enable cmake options filtering out half/double tests at compile time:
 - SYCL_CTS_ENABLE_HALF_TESTS
 - SYCL_CTS_ENABLE_DOUBLE_TESTS

Default option values are switched to ON, because:
- neither SYCL_CTS_ENABLE_DOUBLE_TESTS nor SYCL_CTS_ENABLE_HALF_TESTS
  affect any of the current tests in the CTS:
  tests currently behave like if these options are ON by default
- half types should be available at the compile time according to the
  SYCL 1.2.1, 5.1 and SYCL 2020, D.6.1
- in case there is no  fp16/fp64 extension available for device, a
  feature_not_supported exception should be thrown at the runtime
- double types should be available at the compile time according to
  the SYCL 1.2.1, 4.10.1 and 6.5
- according to the SYCL 2020, 6.5 an implementation may not raise an
  error in case application did not specifically ask to submit the
  kernel to the specific device or to compile the kernel for it

Options are enabled for new fp16/fp64 tests naming convention only;
any elder tests can be modified to use macro defines if required
@yuriykoch
Copy link
Contributor Author

@bader @illuhad @keryell @ProGTX could you possibly take a look, please?

@bader bader requested a review from keryell December 4, 2020 12:14
@bader bader merged commit 74fe226 into KhronosGroup:SYCL-1.2.1/master Jan 20, 2021
@yuriykoch yuriykoch deleted the testcov/cmake/fp16_fp64-options branch January 21, 2021 11:11
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

Successfully merging this pull request may close these issues.

4 participants