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 13c47f6 commit e500060
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion loadgen/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,11 @@ message(STATUS "Using output path: ${LIBRARY_OUTPUT_PATH}")
find_package(PythonInterp)
message(STATUS "Using Python interpreter: ${PYTHON_EXECUTABLE}")


# Generate source file with version info.
execute_process(COMMAND xxd -i mlperf.conf mlperf_conf.h)
execute_process(COMMAND xxd -i mlperf.conf ${CMAKE_BINARY_DIR}/mlperf_conf.h
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
message(STATUS "Output config: ${CMAKE_BINARY_DIR}/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,3 +87,5 @@ 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_BINARY_DIR}/mlperf_conf.h
DESTINATION ${CMAKE_INSTALL_PREFIX}/include)

0 comments on commit e500060

Please sign in to comment.