Skip to content

Commit

Permalink
Automatically add device name to latex output
Browse files Browse the repository at this point in the history
  • Loading branch information
dop-amin committed Dec 19, 2024
1 parent b599644 commit 17f7e5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion envs/common/opencm3.mk
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ OBJECTS = $(OBJECTS_C) $(OBJECTS_ASM)

$(OBJECTS_C): $(BUILD_DIR)/%.o: %
mkdir -p $(@D)
$(CC) $(CFLAGS) -c -o $@ $<
$(CC) $(CFLAGS) -DDEVICE=\"$(DEVICE)\" -c -o $@ $<

$(OBJECTS_ASM): $(BUILD_DIR)/%.o: %
mkdir -p $(@D)
Expand Down
2 changes: 1 addition & 1 deletion tests/dilithium-all/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ static void add_benchmark_results(char *name, uint64_t cycles){
static void dump_benchmarks_tex(void){
for(int i=0;i<benchmark_cnt;i++){

debug_printf("\\DefineVar{%s}{%llu}", results[i].name, results[i].cycles);
debug_printf("\\DefineVar{%s_%s}{%llu}", DEVICE, results[i].name, results[i].cycles);
}
}

Expand Down

0 comments on commit 17f7e5e

Please sign in to comment.