-
Notifications
You must be signed in to change notification settings - Fork 31
remove hardcoded yaml-cpp path from CMakeLists.txt #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
CMakeLists.txt and examples/cpp/cart_pole/CMakeLists.txt contain hardcoded paths to yaml-cpp These has been removed in favour of using env variables * YAML_LIBRARY * YAML_INCLUDE_DIRS
|
LGTM. Josh, any comments? |
romerojosh
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on improving the build for non-Docker users @TomMelt!
Left a couple of comments/changes. Additionally, before we can merge, can you update the Dockerfile to include the definition of this new env var to the TorchFort build line, for example, something like:
RUN cd /torchfort && mkdir build && cd build && \
cmake -DCMAKE_INSTALL_PREFIX=/opt/torchfort \
-DNVHPC_CUDA_VERSION=11.8 \
-DCMAKE_PREFIX_PATH="`python -c 'import torch;print(torch.utils.cmake_prefix_path)'`;/opt/nvidia/hpc_sdk/Linux_x86_64/23.5/cmake" \
-DYAML_LIBRARY=/opt/yaml-cpp/lib \
-DYAML_INCLUDE_DIRS=/opt/yaml-cpp/include \
.. && \
make -j install && \
cd / && rm -rf torchfort
Co-authored-by: romerojosh <romero.josh@gmail.com>
Co-authored-by: romerojosh <romero.josh@gmail.com>
Co-authored-by: romerojosh <romero.josh@gmail.com>
Co-authored-by: romerojosh <romero.josh@gmail.com>
Hi @romerojosh , I have update the (annoyingly I can't test the docker build easily without making a virtual machine because the docker script doesn't work on ubuntu zfs install due to issues with overlayFS and the ZFS filesystems) |
romerojosh
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks for the PR!
CMakeLists.txtandexamples/cpp/cart_pole/CMakeLists.txtcontain hardcoded paths toyaml-cppThese has been removed in favour of using
envvariablesYAML_LIBRARYYAML_INCLUDE_DIRSFixes #6