From 0658fe4ab7fef8175a0b0ac257b580438cb4b8ca Mon Sep 17 00:00:00 2001 From: Robert Chisholm Date: Wed, 15 Nov 2023 16:38:58 +0000 Subject: [PATCH] This now works Windows + CUDA 12.0 Slow (as we haven't got our pre-header hack) and lacks serialization. --- src/flamegpu/detail/JitifyCache.cu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/flamegpu/detail/JitifyCache.cu b/src/flamegpu/detail/JitifyCache.cu index 6b390f596..a8083cf06 100644 --- a/src/flamegpu/detail/JitifyCache.cu +++ b/src/flamegpu/detail/JitifyCache.cu @@ -435,7 +435,7 @@ std::unique_ptr 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", @@ -444,7 +444,7 @@ std::unique_ptr 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(loaded_kernel.value()); } else {