Download the current files for Windows and Linux here.
Currently unsupported.
C:\Users\username\Documents\MATLAB)
/home/username/Documents/MATLAB
dev = HIP.Cuda.DeviceStatus()
src/Python
folder.HIP.lib
or HIP.so
to a location where you can import into pythonimport HIP
dev = HIP.Cuda.DeviceStats()
print(dev)
Install python and conda
Create virtual environment from environment.yml. conda env create -f src/python/environment.yml
Activate environment conda activate hydra
Configure the project with cmake
C:\Users\EricWait\git\programming\hydra-image-processor
with where you cloned the project to.C:\Program Files\CMake\bin\cmake.exe" --no-warn-unused-cli -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -Sc:/Users/EricWait/git/programming/hydra-image-processor -Bc:/Users/EricWait/git/programming/hydra-image-processor/build -G "Visual Studio 16 2019" -T host=x64 -A x64
/home/ewait/git/programming/_core/hydra-image-processor
with the path that you cloned the project to./usr/bin/cmake --no-warn-unused-cli -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/clang -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/clang++ -S/home/ewait/git/programming/_core/hydra-image-processor -B/home/ewait/git/programming/_core/hydra-image-processor/build -G Ninja
Use CMake Tools extension to build all projects. I recommended that you build in Release
mode, so you don’t need the debug libraries for python.
To test that the build worked, run python src/Python/test_nonchunk.py
. You should get the following output (1, 1, 12, 128, 128)
with no errors.