GitHub

@@ -15,6 +15,7 @@

1515

#include <iostream>

1616

#include <string>

1717

#include <defines.hpp>

18+

#include <version.hpp>

18191920

#ifdef _WIN32

2021

#include <limits.h>

@@ -203,7 +204,7 @@ std::string getInfo()

203204

info << string("[0] ") << cinfo.vendor() <<": " << cinfo.model() << " ";

204205

info << "Max threads("<< cinfo.threads()<<") ";

205206

#ifndef NDEBUG

206-

info << AF_CMPLR_STR;

207+

info << AF_COMPILER_STR;

207208

#endif

208209

info << std::endl;

209210

return info.str();

@@ -220,7 +221,7 @@ void devprop(char* d_name, char* d_platform, char *d_toolkit, char* d_compute)

220221

snprintf(d_name, 64, "%s", cinfo.vendor().c_str());

221222

snprintf(d_platform, 10, "CPU");

222223

// report the compiler for toolkit

223-

snprintf(d_toolkit, 64, "%s", AF_CMPLR_STR);

224+

snprintf(d_toolkit, 64, "%s", AF_COMPILER_STR);

224225

snprintf(d_compute, 10, "%s", "0.0");

225226

}

226227

Read the original on github.com ↗