Python/C++ Code Interoperability
These are the steps to build code that has Python/C++ code interoperability.
Login to a ThetaGPU head node
1. Request an interactive session on an A100 GPU
Following this, we need to execute a few commands to get setup with an appropriately optimized TensorFlow. These are: 3. Activate the TensorFlow 2.2 Singularity container:
2. Setup access to the internet
Now that we can access the internet, we need to set up a virtual environment in Python (these commands should only be run the first time).
cmake is required to build our C++ app and link to Python, and other packages may be pip installed as needed in your Python code. An example
MakeLists.txt file for building with Python/C interoperability with examples can be found here.