Commit 33298b0b authored by Paul's avatar Paul
Browse files

Formatting

parent 5aa4e686
......@@ -13,7 +13,7 @@
#include "test.hpp"
#include "verify.hpp"
template<class V>
template <class V>
rtg::argument run_cpu()
{
V v;
......@@ -22,7 +22,7 @@ rtg::argument run_cpu()
return p.eval(v.create_params());
}
template<class V>
template <class V>
rtg::argument run_gpu()
{
V v;
......@@ -30,7 +30,7 @@ rtg::argument run_gpu()
p.compile(rtg::miopen::miopen_target{});
auto m = v.create_params();
for(auto&& e:m)
for(auto&& e : m)
{
e.second = rtg::miopen::to_gpu(e.second);
}
......@@ -42,14 +42,12 @@ rtg::argument run_gpu()
return rtg::miopen::from_gpu(p.eval(m));
}
template<class V>
template <class V>
void verify_program()
{
auto cpu_arg = run_cpu<V>();
auto gpu_arg = run_gpu<V>();
visit_all(cpu_arg, gpu_arg)([](auto cpu, auto gpu) {
EXPECT(test::verify_range(cpu, gpu));
});
visit_all(cpu_arg, gpu_arg)([](auto cpu, auto gpu) { EXPECT(test::verify_range(cpu, gpu)); });
}
struct test1
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment