Skip to content

Commit

Permalink
Fix mlperf_conf.h include
Browse files Browse the repository at this point in the history
  • Loading branch information
arjunsuresh committed Oct 23, 2024
1 parent 1140549 commit 13c47f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
4 changes: 1 addition & 3 deletions loadgen/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ find_package(PythonInterp)
message(STATUS "Using Python interpreter: ${PYTHON_EXECUTABLE}")

# Generate source file with version info.
execute_process(COMMAND xxd -i ${CMAKE_CURRENT_SOURCE_DIR}/mlperf.conf ${CMAKE_CURRENT_SOURCE_DIR}/mlperf_conf.h)
execute_process(COMMAND xxd -i mlperf.conf mlperf_conf.h)

# Generate source file with version info.
execute_process(COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/version_generator.py ${CMAKE_BINARY_DIR}/version_generated.cc ${CMAKE_CURRENT_SOURCE_DIR})
Expand Down Expand Up @@ -84,5 +84,3 @@ install(TARGETS mlperf_loadgen
DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/
DESTINATION ${CMAKE_INSTALL_PREFIX}/include FILES_MATCHING PATTERN "*.h")
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/mlperf.conf
DESTINATION ${CMAKE_INSTALL_PREFIX}/include)
7 changes: 2 additions & 5 deletions loadgen/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,6 @@
"README.md").read_text(
encoding="utf-8")

config_file_path = Path(__file__).parent / "mlperf.conf"

with open("VERSION.txt", "r") as f:
version = f.read()
version_split = version.split(".")
Expand All @@ -105,9 +103,8 @@
("MAJOR_VERSION",
version_split[0]),
("MINOR_VERSION",
version_split[1]),
("MLPERF_CONF_PATH",
f'"{config_file_path}"')],
version_split[1])
],
include_dirs=[".", get_include()],
sources=mlperf_loadgen_sources,
depends=mlperf_loadgen_headers)
Expand Down

0 comments on commit 13c47f6

Please sign in to comment.