Cloning the repository
To clone the ML SDK VGF Library as a stand-alone repository, you can use regular
git clone commands. However, for better management of dependencies and to ensure
everything is placed in the appropriate directories, we recommend using the
git-repo
tool to clone the repository as part of the ML SDK for Vulkan®
suite. The tool is available here.
For a minimal build and to initialize only the ML SDK VGF Library and its dependencies, run:
repo init -u https://github.com/arm/ai-ml-sdk-manifest -g vgf-lib
Alternatively, to initialize the repo structure for the entire ML SDK for Vulkan®, including the VGF Library, run:
repo init -u https://github.com/arm/ai-ml-sdk-manifest -g all
After the repo is initialized, fetch the contents with:
repo sync
Cloning on Windows®
To ensure nested submodules do not exceed the maximum long path length, you must enable long paths on Windows®, and you must clone close to the root directory or use a symlink. Make sure to use Git for Windows.
Using PowerShell:
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
git config --global core.longpaths true
git --version # Ensure you are using Git for Windows, for example 2.50.1.windows.1
git clone <git-repo-tool-url>
python <path-to-git-repo>\git-repo\repo init -u <manifest-url> -g all
python <path-to-git-repo>\git-repo\repo sync
Using Git Bash:
cmd.exe "/c reg.exe add \"HKLM\System\CurrentControlSet\Control\FileSystem"" /v LongPathsEnabled /t REG_DWORD /d 1 /f"
git config --global core.longpaths true
git --version # Ensure you are using the Git for Windows, for example 2.50.1.windows.1
git clone <git-repo-tool-url>
python <path-to-git-repo>/git-repo/repo init -u <manifest-url> -g all
python <path-to-git-repo>/git-repo/repo sync
After the sync command completes successfully, you can find the ML SDK VGF
Library in <repo_root>/sw/vgf-lib/
. You can also find all the dependencies
required by the ML SDK VGF Library in <repo_root>/dependencies/
.