Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ set(DYNOLOG_VERSION "\"${DYNOLOG_VERSION}\"")
set(DYNOLOG_GIT_REV "\"${DYNOLOG_GIT_REV}\"")
message("Dynolog version = ${DYNOLOG_VERSION}")
message("Dynolog git rev = ${DYNOLOG_GIT_REV}")
message("USE_ODS_GRAPH_API= ${USE_ODS_GRAPH_API}")
message("USE_JSON_GENERATED_PERF_EVENTS= ${USE_JSON_GENERATED_PERF_EVENTS}")
message("USE_PROMETHEUS= ${USE_PROMETHEUS}")

set(CMAKE_VERBOSE_MAKEFILE ON)

Expand Down
2 changes: 1 addition & 1 deletion dynolog.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ WORKDIR /workspace/dynolog
COPY . .

# Run the rust build directly
RUN cd cli && /root/.cargo/bin/cargo +nightly build --release -Z sparse-registry --target-dir build
# RUN cd cli && /root/.cargo/bin/cargo +nightly build --release -Z sparse-registry --target-dir build

RUN ./scripts/build.sh 2>&1 | tee build.log

Expand Down
29 changes: 26 additions & 3 deletions dynolog/src/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,13 +155,36 @@ void gpu_monitor_loop(std::shared_ptr<gpumon::DcgmGroupInfo> dcgm) {
}
}

void version_info() {
LOG(INFO) << "Starting dynolog, version = " DYNOLOG_VERSION
<< ", build git-hash = " DYNOLOG_GIT_REV;
LOG(INFO) << "Build Config:";
LOG(INFO) << " USE_GRAPH_ENDPOINT = "
#ifdef USE_GRAPH_ENDPOINT
<< 1;
#else
<< 0;
#endif // USE_GRAPH_ENDPOINT

LOG(INFO) << " USE_JSON_GENERATED_PERF_EVENTS = "
#ifdef USE_JSON_GENERATED_PERF_EVENTS
<< 1;
#else
<< 0;
#endif // USE_JSON_GENERATED_PERF_EVENTS
LOG(INFO) << " USE_PROMETHEUS = "
#ifdef USE_PROMETHEUS
<< 1;
#else
<< 0;
#endif // USE_PROMETHEUS
}

int main(int argc, char** argv) {
gflags::ParseCommandLineFlags(&argc, &argv, true);
FLAGS_logtostderr = 1;
google::InitGoogleLogging(argv[0]);

LOG(INFO) << "Starting dynolog, version = " DYNOLOG_VERSION
<< ", build git-hash = " DYNOLOG_GIT_REV;
version_info();

std::shared_ptr<gpumon::DcgmGroupInfo> dcgm;

Expand Down