MCPcopy Create free account
hub / github.com/TomClabault/HIPRT-Path-Tracer / precompile_kernel

Method precompile_kernel

src/Threads/ThreadFunctions.cpp:23–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23void ThreadFunctions::precompile_kernel(const std::string& kernel_function_name, const std::string& kernel_filepath, GPUKernelCompilerOptions options, std::shared_ptr<HIPRTOrochiCtx> hiprt_orochi_ctx, const std::vector<hiprtFuncNameSet>& func_name_sets)
24{
25 OROCHI_CHECK_ERROR(oroCtxSetCurrent(hiprt_orochi_ctx->orochi_ctx));
26
27 GPUKernel kernel(kernel_filepath, kernel_function_name);
28 kernel.set_precompiled(true);
29 kernel.get_kernel_options() = options;
30 kernel.compile(hiprt_orochi_ctx, func_name_sets, true, true);
31}
32
33void ThreadFunctions::load_scene_texture(Scene& parsed_scene, std::string scene_path, const std::vector<std::pair<aiTextureType, std::string>>& tex_paths, const std::vector<int>& material_indices, int thread_index, int nb_threads)
34{

Callers

nothing calls this directly

Calls 2

set_precompiledMethod · 0.80
compileMethod · 0.45

Tested by

no test coverage detected