File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -84,9 +84,9 @@ uint32_t PlatformUtil::getMemCacheLineSize() {
84
84
cpuid (CPUInfo, 0x80000006 );
85
85
return CPUInfo[2 ] & 0xff ;
86
86
#elif defined(SYCL_RT_OS_LINUX) && defined(_SC_LEVEL2_DCACHE_LINESIZE)
87
- long linesize = sysconf (_SC_LEVEL2_DCACHE_LINESIZE);
88
- if (linesize > 0 ) {
89
- return linesize ;
87
+ long lineSize = sysconf (_SC_LEVEL2_DCACHE_LINESIZE);
88
+ if (lineSize > 0 ) {
89
+ return lineSize ;
90
90
}
91
91
#else
92
92
#warning Your platform is not supported.
@@ -100,9 +100,9 @@ uint64_t PlatformUtil::getMemCacheSize() {
100
100
cpuid (CPUInfo, 0x80000006 );
101
101
return static_cast <uint64_t >(CPUInfo[2 ] >> 16 ) * 1024 ;
102
102
#elif defined(SYCL_RT_OS_LINUX) && defined(_SC_LEVEL2_DCACHE_SIZE)
103
- long cachesize = sysconf (_SC_LEVEL2_DCACHE_SIZE);
104
- if (cachesize > 0 ) {
105
- return cachesize ;
103
+ long cacheSize = sysconf (_SC_LEVEL2_DCACHE_SIZE);
104
+ if (cacheSize > 0 ) {
105
+ return cacheSize ;
106
106
}
107
107
#else
108
108
#warning Your platform is not supported.
You can’t perform that action at this time.
0 commit comments