# go-onnxruntime **Repository Path**: tx7do/go-onnxruntime ## Basic Information - **Project Name**: go-onnxruntime - **Description**: go-onnxruntime - **Primary Language**: Go - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-02-17 - **Last Updated**: 2023-11-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # go-onnxruntime **CPU SUPPORT ONLY** ## Install ### Install Image Lib: ```shell sudo apt install libjpeg-dev libtiff-dev libpng-dev ``` ### Install [ONNX Runtime](https://github.com/microsoft/onnxruntime): ```shell wget https://github.com/microsoft/onnxruntime/releases/download/v1.14.0/onnxruntime-linux-x64-1.14.0.tgz tar -zxvf onnxruntime-linux-x64-1.14.0.tgz sudo mv onnxruntime-linux-x64-1.14.0 /opt/onnxruntime sudo chown -R `whoami` /opt/onnxruntime ``` ### Install CUDA #### Install CUDA Toolkit: #### Install [cupti](https://docs.nvidia.com/cuda/cupti/index.html): ```shell sudo apt install libcupti-dev ``` ## Configure Environmental Variables Configure the linker environmental variables since the Onnxruntime C++ library is under a non-system directory. Place the following in either your `~/.bashrc` or `~/.zshrc` file: Linux ```shell export LIBRARY_PATH=$LIBRARY_PATH:/opt/onnxruntime/lib export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/onnxruntime/lib ``` macOS ```shell export LIBRARY_PATH=$LIBRARY_PATH:/opt/onnxruntime/lib export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:/opt/onnxruntime/lib ```