Skip to content

Commit 14efedf

Browse files
committed
Attempt to reduce how much compiler output is printed at failure.
1 parent 4b7e9ed commit 14efedf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/flamegpu/detail/JitifyCache.cu

+1-1
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ std::unique_ptr<jitify2::LinkedProgramData> JitifyCache::buildProgram(
414414
const std::string program_name = func_name + "_program"; // Does this name actually matter?
415415
jitify2::PreprocessedProgram program = jitify2::Program(program_name, kernel_src, headers)->preprocess(options);
416416
if (!program.ok()) {
417-
const jitify2::ErrorMsg& compile_error = program.error();
417+
const jitify2::ErrorMsg& compile_error = program->compile_log();
418418
fprintf(stderr, "Failed to load program for agent function (condition) '%s', log:\n%s",
419419
func_name.c_str(), compile_error.c_str());
420420
THROW exception::InvalidAgentFunc("Error loading agent function (or function condition) ('%s'): function had compilation errors:\n%s",

0 commit comments

Comments
 (0)