diff --git a/projects/rocprofiler-compute/CMakeLists.txt b/projects/rocprofiler-compute/CMakeLists.txt index 5192747e3c..f2ca926314 100644 --- a/projects/rocprofiler-compute/CMakeLists.txt +++ b/projects/rocprofiler-compute/CMakeLists.txt @@ -387,10 +387,14 @@ add_custom_target( COMMAND ${Python3_EXECUTABLE} -m nuitka --mode=onefile --include-data-files=${PROJECT_SOURCE_DIR}/VERSION*=./ --enable-plugin=no-qt - --include-package-data=dash_svg --include-package=dash_bootstrap_components - --include-package=plotly --include-package-data=kaleido + --include-package=dash_svg --include-package-data=dash_svg + --include-package=dash_bootstrap_components + --include-package-data=dash_bootstrap_components --include-package=plotly + --include-package-data=plotly --include-package=kaleido + --include-package-data=kaleido --include-package=rocprof_compute_analyze + --include-package-data=rocprof_compute_analyze --include-package=rocprof_compute_soc --include-package-data=rocprof_compute_soc - --include-package-data=utils rocprof-compute + --include-package=utils --include-package-data=utils rocprof-compute # Remove library rpath from executable COMMAND patchelf --remove-rpath rocprof-compute.bin # Move to build directory diff --git a/projects/rocprofiler-compute/README.md b/projects/rocprofiler-compute/README.md index d2b8ebf186..b56f8dce5e 100644 --- a/projects/rocprofiler-compute/README.md +++ b/projects/rocprofiler-compute/README.md @@ -38,7 +38,7 @@ Users may checkout `amd-staging` to preview upcoming features. To quickly get the environment (bash shell) for building and testing, run the following commands: * `cd docker` -* `docker compose -f docker-compose.test.yml run test` +* `docker compose -f docker-compose.test.yml up --force-recreate -d && docker attach docker-test-1` Inside the docker container, clean, build and install the project with tests enabled: ``` @@ -60,7 +60,7 @@ NOTE: This Dockerfile uses `rocm/dev-ubuntu-22.04` as the base image To create a standalone binary, run the following commands: * `cd docker` -* `docker compose -f docker-compose.standalone.yml run standalone` +* `docker compose -f docker-compose.standalone.yml up --force-recreate -d && docker attach docker-standalone-1` You should find the rocprof-compute.bin standalone binary inside the `build` folder in the root directory of the project. diff --git a/projects/rocprofiler-compute/docker/Dockerfile.test b/projects/rocprofiler-compute/docker/Dockerfile.test index e08407cbb9..1db802515a 100644 --- a/projects/rocprofiler-compute/docker/Dockerfile.test +++ b/projects/rocprofiler-compute/docker/Dockerfile.test @@ -25,6 +25,6 @@ RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.10 1 # Install any dependencies specified in requirements.txt # Run interactive bash shell CMD ["/bin/bash", "-c", "\ - python3.10 -m pip install -r requirements.txt -r requirements-test.txt \ + python3 -m pip install -r requirements.txt -r requirements-test.txt \ && exec /bin/bash \ -"] \ No newline at end of file +"] diff --git a/projects/rocprofiler-compute/docker/docker-compose.test.yml b/projects/rocprofiler-compute/docker/docker-compose.test.yml index cb20c5fdbe..d654d580e1 100644 --- a/projects/rocprofiler-compute/docker/docker-compose.test.yml +++ b/projects/rocprofiler-compute/docker/docker-compose.test.yml @@ -9,4 +9,8 @@ services: security_opt: - seccomp:unconfined volumes: - - ../:/app \ No newline at end of file + - ../:/app + ports: + - 8050:8050 + tty: true + stdin_open: true