| 3360 | } |
| 3361 | |
| 3362 | Kernel_impl::Kernel_impl(Program_impl const& program, std::string name, |
| 3363 | jitify::detail::vector<std::string> options) |
| 3364 | : _program(program), _name(name), _options(options) { |
| 3365 | // Merge options from parent |
| 3366 | _options.insert(_options.end(), _program.options().begin(), |
| 3367 | _program.options().end()); |
| 3368 | detail::detect_and_add_cuda_arch(_options); |
| 3369 | detail::detect_and_add_cxx11_flag(_options); |
| 3370 | std::string options_string = reflection::reflect_list(_options); |
| 3371 | using detail::hash_combine; |
| 3372 | using detail::hash_larson64; |
| 3373 | _hash = _program._hash; |
| 3374 | _hash = hash_combine(_hash, hash_larson64(_name.c_str())); |
| 3375 | _hash = hash_combine(_hash, hash_larson64(options_string.c_str())); |
| 3376 | } |
| 3377 | |
| 3378 | Program_impl::Program_impl(JitCache_impl& cache, std::string source, |
| 3379 | jitify::detail::vector<std::string> headers, |
nothing calls this directly
no test coverage detected