Fixed cmake policy issue for specifc cmake versions#3569
Merged
christophe-murphy merged 1 commit intoarrayfire:3539-build-oneapi-version-2024-incompatible-for-mklfrom Sep 30, 2024
Conversation
christophe-murphy
approved these changes
Sep 30, 2024
d374808
into
arrayfire:3539-build-oneapi-version-2024-incompatible-for-mkl
christophe-murphy
added a commit
that referenced
this pull request
Feb 13, 2025
* Updated cmake files to support oneAPI version 2024.1. Currently doesn't support compiling on Windows, this will be added later. * Some tests were showing oneAPI errors due to nested calls of submit to the SYCL queue which is not supported. This has been fixed by moving calls to get() out of the submit calls. If a get call is made to a node that has not yet been evaluated, it will need to submit work to the SYCL queue. * Modify test cases to check if library functions are supported on the current backend. If a function is not supported the test is skipped. This works with both the C API which returns an error flag and the C++ API which throws an exception. * Modified half support check to check the native vector width for half precision as well as the fp16 aspect for the oneAPI backend. Some devices advertise the fp16 aspect but their native vector width for half precision is zero which results in errors when calling OpenCL routines with half precision arguments. * Fix for bug in index function introduced when implementing a fix for nested oneAPI queue submissions. * Fixed bug in irreduce_dim_launcher where incorrect templated calls were made to ireduceDimKernelSMEM for 1, 2 and 4 y threads * Fix bug in wrap function where one dimension of the output array was missing from the global problem size. * Check for failure of asserts in apiWrapper and return from test to prevent segfaults in subsequent asserts. * Modified ASSERT_SUCCESS macro to skip unsupported tests rather than failing when AF_SKIP_UNSUPPORTED_TESTS CMake option is enabled * Fixed cmake policy issue for oneapi fix (#3569) * Cmake function CMakeDetermineCompileFeatures has been changed to CMakeDetermineCompilerSupport in version 3.30. Added support for this. * Removed unsupported compute capabilites from all architectures list for CUDA 12 * Rename variables for input and output arrays of join method * Fix issue where NOT_SUPPORTED errors were storing the error message as the back end name * Added macro for asserting success of C++ API functions that throw exceptions. If the not supported exception is thrown, the test can be skipped if the AF_SKIP_UNSUPPORTED_TESTS variable is on. * Remove macros that check for unsupported exceptions and skip tests. A SKIP_BACKEND macro will be made instead that will need to be explicitly added to each test that calls a function unsupported for a given backend. * The UNSUPPORTED_BACKEND macro has now been added to all tests that are not supported by the oneAPI back end. If AF_SKIP_UNSUPPORTED_TESTS is set to ON then all tests with this macro will be skipped. These will need to be removed as oneAPI support is added for each feature. * Update getBackendName test helper function to support all back ends. It is now used for the UNSUPPORTED_BACKEND macro. --------- Co-authored-by: Edwin Lester Solís Fuentes <68087165+edwinsolisf@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes cmake configuring issue where specified cmake policy is not available prior to a certain cmake version: https://cmake.org/cmake/help/latest/policy/CMP0146.html
Changes to Users
Checklist