diff options
author | Cedric Nugteren <web@cedricnugteren.nl> | 2017-11-30 21:32:47 +0100 |
---|---|---|
committer | Cedric Nugteren <web@cedricnugteren.nl> | 2017-11-30 21:32:47 +0100 |
commit | 13eb772343c46109da0181db3bdc6fa436a9dcce (patch) | |
tree | b6c9ff01500de47fde27e60b7e84f000d37e628c /src/tuning | |
parent | 93ffb876c60838bee75d3bb25ebbcbfce02e2cc7 (diff) |
Integrated pre-processor in compilation flow, default is still disabled
Diffstat (limited to 'src/tuning')
-rw-r--r-- | src/tuning/tuning.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tuning/tuning.hpp b/src/tuning/tuning.hpp index 12826d0c..329314e5 100644 --- a/src/tuning/tuning.hpp +++ b/src/tuning/tuning.hpp @@ -227,7 +227,7 @@ void Tuner(int argc, char* argv[]) { // Compiles the kernel auto compiler_options = std::vector<std::string>(); const auto program = CompileFromSource(settings.sources, args.precision, settings.kernel_name, - device, context, compiler_options); + device, context, compiler_options, false); auto kernel = Kernel(program, settings.kernel_name); C::SetArguments(kernel, args, device_buffers); printf(" %sOK%s |", kPrintSuccess.c_str(), kPrintEnd.c_str()); @@ -286,7 +286,7 @@ void Tuner(int argc, char* argv[]) { const auto start_time = std::chrono::steady_clock::now(); auto compiler_options = std::vector<std::string>(); const auto program = CompileFromSource(kernel_source, args.precision, settings.kernel_name, - device, context, compiler_options, true); + device, context, compiler_options, false, true); auto kernel = Kernel(program, settings.kernel_name); const auto elapsed_time = std::chrono::steady_clock::now() - start_time; const auto timing = std::chrono::duration<double,std::milli>(elapsed_time).count(); |