Fix post analysis gui in standalone binary (#591)
* Fix post analysis gui in standalone binary
* Add post analysis gui assets and required server libraries for GUI
server and web page
* Add port forwarding to docker test compose
* Update README me to use `docker compose up` instead of `docker compose run`
to run containers with port forwarding and to leverage other
functionalities of docker compose
[ROCm/rocprofiler-compute commit: 0b3114fa88]
This commit is contained in:
committed by
Vignesh Edithal
parent
254592953c
commit
536fb5ea26
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
@@ -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 \
|
||||
"]
|
||||
"]
|
||||
|
||||
@@ -9,4 +9,8 @@ services:
|
||||
security_opt:
|
||||
- seccomp:unconfined
|
||||
volumes:
|
||||
- ../:/app
|
||||
- ../:/app
|
||||
ports:
|
||||
- 8050:8050
|
||||
tty: true
|
||||
stdin_open: true
|
||||
|
||||
Reference in New Issue
Block a user