Skip to content

Commit

Permalink
Merge pull request #47 from agozillon/arm-def
Browse files Browse the repository at this point in the history
[SYCL][Runtime] Inversing the ARM Defines to fix Intel CPU
  • Loading branch information
keryell authored Jul 4, 2019
2 parents 54d6bde + 38da40d commit f8d3405
Showing 1 changed file with 4 additions and 4 deletions.
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

0 comments on commit f8d3405

Please sign in to comment.