如何在Ubuntu 14.04安裝GPU Ocelot?

如何在Ubuntu 14.04安裝GPU Ocelot?

我正在使用 Ubuntu 14.04,我希望安裝GPU豹貓(一個用於 GPU 運算應用程式的開源動態 JIT 編譯框架)。我搜尋過合適的 Ocelot 版本,但沒有找到。

有沒有辦法在我的 Ubuntu 中安裝 GPU Ocelot?

答案1

安裝

如果git沒有安裝,請安裝:

sudo apt-get update && sudo apt-get install git

從 github 上查看 Ocelot:

git clone https://github.com/gtcasl/gpuocelot.git

可選:安裝boost

sudo apt-get install libboost-all-dev

可選:安裝編譯工具

sudo apt-get install flex bison g++ scons

輸入gpuocelot/ocelot目錄

cd gpuocelot/ocelot

運行build腳本。

sudo ./build.py --install

這將安裝 Ocelot 開發標頭和函式庫:

libocelot.so

創建到 Ocelot 庫的必要係統鏈接,以便動態鏈接器能夠找到它:

sudo ldconfig

該程式庫可用於存取 ocelot 內的工具或連結到使用 NVCC 編譯的 CUDA 應用程式以模擬 CUDA 設備。

或者,有一個新的實用程序,OcelotConfig其目的只是連結到 Ocelot 的過程。

要將程式連結到 Ocelot:

g++ -o my_program my_program.o OcelotConfig -l

參考連結了解更多詳情。

相關內容