| 46 | } |
| 47 | |
| 48 | parameter_map fill_param_map(parameter_map& m, |
| 49 | const std::unordered_map<std::string, shape>& param_shapes, |
| 50 | const target& t, |
| 51 | bool offload) |
| 52 | { |
| 53 | for(auto&& x : param_shapes) |
| 54 | { |
| 55 | argument& arg = m[x.first]; |
| 56 | if(arg.empty()) |
| 57 | { |
| 58 | assert(not x.second.dynamic()); |
| 59 | arg = generate_argument(x.second, get_hash(x.first), random_mode::random); |
| 60 | } |
| 61 | if(not offload) |
| 62 | arg = t.copy_to(arg); |
| 63 | } |
| 64 | return m; |
| 65 | } |
| 66 | |
| 67 | parameter_map create_param_map(const program& p, const target& t, bool offload) |
| 68 | { |