Commit f050afb7 authored by Paul's avatar Paul
Browse files

Use out own passthrough to workaround ck issues

parent 9c3073bd
This diff is collapsed.
......@@ -82,5 +82,14 @@ struct ck_nop
}
};
struct ck_passthrough
{
template <class T, class U>
constexpr void operator()(T& y , U x) const
{
y = x;
}
};
} // namespace migraphx
#endif // MIGRAPHX_GUARD_KERNELS_CK_HPP
......@@ -75,10 +75,10 @@ def parse_log(f):
yield config
def benchmark_log(f):
def benchmark_log(f, n):
result = []
for config in parse_log(f):
tuned = benchmark(config, 13)
tuned = benchmark(config, n)
result.append([config, tuned])
return result
......@@ -95,12 +95,15 @@ def parse_args():
type=str,
metavar='file',
help='Output json file to save tunings')
parser.add_argument('-n',
type=int,
help='Number of instances to tune')
args = parser.parse_args()
return args
def run(args):
tuned = benchmark_log(args.log)
tuned = benchmark_log(args.log, args.n)
json.dump(tuned, open(args.out, 'w+'))
......
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