-
Notifications
You must be signed in to change notification settings - Fork 5
Installation Guide ‐ Parallel Version
This page explains how to install and run the serial version of Dynamic CA-ffé on your system.
Two installation methods are provided depending on your operating system.
Follow the steps below on Windows.
- Go to the main GitHub repository.
- Click Code → Download ZIP.
- Extract the ZIP file to a directory on your computer.
For example:
C:\dyncaffe\-
Go to the Visual Studio downloads page and download Visual Studio 2026 Insiders. This will give you a file named VisualStudioSetup.exe.
-
Run VisualStudioSetup.exe and, in the installer, choose "Visual Studio Build Tools 2026". Keep all the default options selected.
-
Once installed, open the "x64 Native Tools Command Prompt for VS" from the Start menu.
-
Navigate to your dyncaffe folder and run the build script:
build_win.bat- If the build is successful, you should see output similar to:
/dll
/implib:.\build\caffe_core_parallel.lib
/out:.\build\caffe_core_parallel.dll
.\build\caffe_core_parallel.obj
Creating library .\build\caffe_core_parallel.lib and object .\build\caffe_core_parallel.exp- Your compiled library files will now be in the build/ folder:
build/
caffe_core_parallel.dll
caffe_core_parallel.lib
caffe_core_parallel.expThese are the C++ compiled library files used at runtime.
Dynamic CA-ffé uses a Python environment managed by Conda.
-
Download Miniconda.
-
Run the installer and follow the default installation steps.
-
After installation, open Anaconda Prompt.
Navigate to the folder containing the repository and create the environment using the provided YML file.
cd C:\dyncaffe
conda env create -f dyncaffe_conda_env.ymlActivate the environment before running the code.
conda activate dyncaffeOnce activated, the environment is ready to run the model.
To verify that the installation was successful, run the following test example:
python run_caffe_parallel.pyEach time you want to use Dynamic CA-ffé, simply activate the environment. Then you can go ahead and run your created model.
Follow the steps below on a Linux/Debian-based system.
- Go to the main GitHub repository.
- Click Code → Download ZIP or clone the repository using Git:
git clone https://github.com/MGK-Lab/dyncaffe.git- Navigate to the repository folder:
cd ~/dyncaffeDynamic CA-ffé uses a Python environment managed by Conda.
- Download the Linux Miniconda installer:
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh- Run the installer:
bash Miniconda3-latest-Linux-x86_64.shFollow the prompts and accept the default options. After installation, restart your terminal.
In the repository folder, create the environment from the provided YML file:
conda env create -f dyncaffe_conda_env.ymlYou need to have administrative access to install the package below
sudo apt update
sudo apt install build-essential
bash build_linux.shActivate the environment before running any scripts:
conda activate dyncaffeOnce activated, your environment is ready to run Dynamic CA-ffé.
Verify the installation by running a test example:
python run_caffe_parallel.pyEach time you want to use Dynamic CA-ffé, activate the environment first, then run your Python scripts as required.