diff options
author | Rhys Weatherley <rhys.weatherley@nokia.com> | 2010-05-08 20:35:36 +1000 |
---|---|---|
committer | Rhys Weatherley <rhys.weatherley@nokia.com> | 2010-05-08 20:35:36 +1000 |
commit | 63d391a3cecd615e31223e1ddfd18124b7435a19 (patch) | |
tree | 84a5b3fec73a3e17c1d22ffb2052a4c85d609b38 /util | |
parent | b319430d3ce9d0ddc255865dc2d7970e97cc32d8 (diff) |
Fix warning in clinfo - globalMemoryCacheType not set correctly.
Diffstat (limited to 'util')
-rw-r--r-- | util/clinfo/clinfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/clinfo/clinfo.cpp b/util/clinfo/clinfo.cpp index 10257af..b5275c6 100644 --- a/util/clinfo/clinfo.cpp +++ b/util/clinfo/clinfo.cpp @@ -104,7 +104,7 @@ int main(int argc, char *argv[]) printMemorySize(dev.localMemorySize()); printf(" Global Memory : "); printMemorySize(dev.globalMemorySize()); - QCLDevice::CacheType cacheType; + QCLDevice::CacheType cacheType = dev.globalMemoryCacheType(); printf(" Global Cache Type : "); if (cacheType == QCLDevice::ReadOnlyCache) printf("ReadOnly\n"); |