Skip to content

Commit 95c3fb5

Browse files
author
Hammond, Jeff R
committed
remove #warning in #else case
MSVC does not support #warning compile-time warnings about non-support are not that useful. the code path that generated the warning should not break anything, it just might not be optimal and accurately reflect the underlying platform. Signed-off-by: Hammond, Jeff R <jeff.r.hammond@intel.com>
1 parent 1c3bb5c commit 95c3fb5

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

sycl/source/detail/platform_util.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,6 @@ uint32_t PlatformUtil::getMaxClockFrequency() {
7272
Buff = Buff.substr(Buff.rfind(' '), Buff.length());
7373
Freq *= std::stod(Buff);
7474
return Freq;
75-
#else
76-
#warning Your platform is not supported!
7775
#endif
7876
return 0;
7977
}
@@ -88,8 +86,6 @@ uint32_t PlatformUtil::getMemCacheLineSize() {
8886
if (lineSize > 0) {
8987
return lineSize;
9088
}
91-
#else
92-
#warning Your platform is not supported.
9389
#endif
9490
return 8;
9591
}
@@ -104,8 +100,6 @@ uint64_t PlatformUtil::getMemCacheSize() {
104100
if (cacheSize > 0) {
105101
return cacheSize;
106102
}
107-
#else
108-
#warning Your platform is not supported.
109103
#endif
110104
return static_cast<uint64_t>(16 * 1024);
111105
}
@@ -161,8 +155,6 @@ uint32_t PlatformUtil::getNativeVectorWidth(PlatformUtil::TypeIndex TIndex) {
161155
static constexpr uint32_t VECTOR_WIDTH_NEON[] = {16, 8, 4, 2, 4, 2, 0};
162156
return VECTOR_WIDTH_NEON[Index];
163157

164-
#else
165-
#warning Your platform is not supported!
166158
#endif
167159
return 0;
168160
}

0 commit comments

Comments
 (0)