! Restore a serialized kernel instantiation. * * \param serialized_kernel_inst The serialized kernel instantiation to * restore. * * \see serialize */
| 3970 | * \see serialize |
| 3971 | */ |
| 3972 | static KernelInstantiation deserialize( |
| 3973 | std::string const& serialized_kernel_inst) { |
| 3974 | std::string func_name, ptx; |
| 3975 | std::vector<std::string> link_files, link_paths; |
| 3976 | if (!serialization::deserialize(serialized_kernel_inst, &func_name, &ptx, |
| 3977 | &link_files, &link_paths)) { |
| 3978 | throw std::runtime_error("Failed to deserialize kernel instantiation"); |
| 3979 | } |
| 3980 | return KernelInstantiation(func_name, ptx, link_files, link_paths); |
| 3981 | } |
| 3982 | |
| 3983 | /*! Save the program. |
| 3984 | * |
nothing calls this directly
no test coverage detected