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

[SYCL][Runtime] Inversing the ARM Defines to fix Intel CPU #47

Merged
merged 1 commit into from
Jul 4, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions sycl/source/detail/platform_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ uint32_t PlatformUtil::getMaxClockFrequency() {
throw runtime_error(
"max_clock_frequency parameter is not supported for host device");

#if !defined(__arm__) || !defined(__aarch64__)
#if defined(__arm__) || defined(__aarch64__)
throw runtime_error(
"max_clock_frequency is not supported for ARM architectures");
#endif
Expand Down Expand Up @@ -76,7 +76,7 @@ uint32_t PlatformUtil::getMaxClockFrequency() {
}

uint32_t PlatformUtil::getMemCacheLineSize() {
#if !defined(__arm__) || !defined(__aarch64__)
#if defined(__arm__) || defined(__aarch64__)
throw runtime_error(
"global_mem_cache_line_size is not supported for ARM architectures");
#endif
Expand All @@ -87,7 +87,7 @@ uint32_t PlatformUtil::getMemCacheLineSize() {
}

uint64_t PlatformUtil::getMemCacheSize() {
#if !defined(__arm__) || !defined(__aarch64__)
#if defined(__arm__) || defined(__aarch64__)
throw runtime_error(
"global_mem_cache_size is not supported for ARM architectures");
#endif
Expand All @@ -98,7 +98,7 @@ uint64_t PlatformUtil::getMemCacheSize() {
}

uint32_t PlatformUtil::getNativeVectorWidth(PlatformUtil::TypeIndex TIndex) {
#if !defined(__arm__) || !defined(__aarch64__)
#if defined(__arm__) || defined(__aarch64__)
throw runtime_error(
"native_vector_width_* is not supported for ARM architectures");
#endif
Expand Down