Skip to content

Commit

Permalink
This now works Windows + CUDA 12.0
Browse files Browse the repository at this point in the history
Slow (as we haven't got our pre-header hack) and lacks serialization.
  • Loading branch information
Robadob committed Nov 15, 2023
1 parent 30da5ad commit 0658fe4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/flamegpu/detail/JitifyCache.cu
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ std::unique_ptr<jitify2::KernelData> JitifyCache::compileKernel(const std::strin
} else {
THROW exception::UnknownInternalError("Unexpected AgentFunction template arg count!");
}
auto loaded_program = program->load({ name_expression.str() });
jitify2::LoadedProgram loaded_program = program->load({ name_expression.str() });
if (!loaded_program.ok()) {
const jitify2::ErrorMsg &compile_error = loaded_program.error();
fprintf(stderr, "Failed to load program for agent function (condition) '%s', log:\n%s",
Expand All @@ -444,7 +444,7 @@ std::unique_ptr<jitify2::KernelData> JitifyCache::compileKernel(const std::strin
"in JitifyCache::buildProgram().",
func_name.c_str());
}
auto loaded_kernel = loaded_program->get_kernel("");
jitify2::Kernel loaded_kernel = loaded_program->get_kernel(name_expression.str());
if (loaded_kernel.ok()) {
return std::make_unique<jitify2::KernelData>(loaded_kernel.value());
} else {
Expand Down

0 comments on commit 0658fe4

Please sign in to comment.