| 65 | } |
| 66 | |
| 67 | parameter_map create_param_map(const program& p, const target& t, bool offload) |
| 68 | { |
| 69 | parameter_map m; |
| 70 | for(auto&& x : p.get_parameter_shapes()) |
| 71 | { |
| 72 | auto arg = generate_argument(x.second, get_hash(x.first), random_mode::random); |
| 73 | if(offload) |
| 74 | m[x.first] = arg; |
| 75 | else |
| 76 | m[x.first] = t.copy_to(arg); |
| 77 | } |
| 78 | return m; |
| 79 | } |
| 80 | |
| 81 | parameter_map create_param_map(const program& p, bool gpu) |
| 82 | { |
no test coverage detected