Skip to content

Commit

Permalink
Added VERSION.txt src dependency in cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
arjunsuresh committed Oct 23, 2024
1 parent fba2222 commit 2c6641c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion loadgen/version_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def generate_loadgen_version_definitions(cc_filename, loadgen_root):
ofile.write("#include <string>\n\n")
ofile.write("namespace mlperf {\n\n")
# Open and read the VERSION.txt file
with open("VERSION.txt", "r") as version_file:
with open(os.path.join(loadgen_root, "VERSION.txt"), "r") as version_file:
version_contents = version_file.read().strip() # Read and strip any extra whitespace/newlines

# Write the version into the function definition
Expand Down

0 comments on commit 2c6641c

Please sign in to comment.