linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / libraries / science / math / clblas / platform.patch
blob87404a426a4b01523b0cfb12070a61c9f3aab837
1 diff --git a/src/library/tools/ktest/config.cpp b/src/library/tools/ktest/config.cpp
2 index 8b20128..faf9bde 100644
3 --- a/src/library/tools/ktest/config.cpp
4 +++ b/src/library/tools/ktest/config.cpp
5 @@ -24,8 +24,6 @@
7 using namespace clMath;
9 -static const char DEFAULT_PLATFORM_NAME[] = "AMD Accelerated Parallel Processing";
11 Config::Config() :
12 defaultConfig_(""),
13 cpp_("ktest.cpp"),
14 @@ -35,7 +33,10 @@ Config::Config() :
15 hasFuncID_(false), hasSubdims_(false),
16 skipAccuracy_(false)
18 - setPlatform(DEFAULT_PLATFORM_NAME);
19 + platform_ = NULL;
20 + setPlatform("");
22 + device_ = NULL;
23 setDevice("");
25 memset(&kargs_, 0, sizeof(kargs_));
26 @@ -262,7 +263,7 @@ Config::setPlatform(const std::string& name)
27 continue;
29 if (name.empty()) {
30 - found = (strcmp(pname, DEFAULT_PLATFORM_NAME) == 0);
31 + found = true;
33 else {
34 found = (strcmp(pname, name.c_str()) == 0);