Commit 0ac1448d by Karsa Zoltán István

cuda example

parent 41c2b542
...@@ -57,7 +57,7 @@ Kiinduló os: Ubuntu 22.04 server. Szükséges könyvtárak, függőségek telep ...@@ -57,7 +57,7 @@ Kiinduló os: Ubuntu 22.04 server. Szükséges könyvtárak, függőségek telep
- `export PATH=$PATH:/usr/local/cuda-12.2/bin && export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-12.2/lib64:/usr/local/cuda-12.2/lib64` - `export PATH=$PATH:/usr/local/cuda-12.2/bin && export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-12.2/lib64:/usr/local/cuda-12.2/lib64`
- `sudo apt install build-essential git make rpcbind` - `sudo apt install build-essential git make rpcbind`
- `sudo apt-get install autotools-dev automake libtool` - `sudo apt-get install autotools-dev automake libtool`
- `sudo apt install qemu-kvm libvirt-daemon-system virt-manager` - `sudo apt install qemu-kvm libvirt-daemon-system virt-manager libvirt-dev`
- `sudo apt-get install libtool libelf-dev libssl-dev cmake pkg-config libvdpau-dev` - `sudo apt-get install libtool libelf-dev libssl-dev cmake pkg-config libvdpau-dev`
- `sudo apt-get install mesa-utils libglu1-mesa-dev freeglut3-dev mesa-common-dev` - `sudo apt-get install mesa-utils libglu1-mesa-dev freeglut3-dev mesa-common-dev`
- `sudo apt-get install libglew-dev libglfw3-dev libglm-dev` - `sudo apt-get install libglew-dev libglfw3-dev libglm-dev`
...@@ -66,4 +66,22 @@ Kiinduló os: Ubuntu 22.04 server. Szükséges könyvtárak, függőségek telep ...@@ -66,4 +66,22 @@ Kiinduló os: Ubuntu 22.04 server. Szükséges könyvtárak, függőségek telep
- `sudo apt install python3-dev` - `sudo apt install python3-dev`
- `sudo apt install libcudnn8-dev` - `sudo apt install libcudnn8-dev`
- `git clone https://github.com/RWTH-ACS/cricket.git` - `git clone https://github.com/RWTH-ACS/cricket.git`
- `cd cricket && sudo apt install libcudnn8-dev` - `cd cricket && git submodule update --init`
\ No newline at end of file - `LOG=ERROR make`
- `export PATH=$PATH:/home/cloud/cricket/bin`
Guest os:
- `sudo apt install build-essential vim`
- `sudo apt-get install -y make bash git gcc autoconf libtool automake libelf-dev libncurses-dev zlib1g-dev binutils-dev libgl1-mesa-dev libvdpau-dev libegl1-mesa-dev libssl-dev rpcbind texinfo bison flex python3 libibverbs-dev libasan5 cppcheck wget libexpat1 xz-utils libglu1-mesa-dev freeglut3-dev rpm2cpio`
- `wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.1-1_all.deb`
- `sudo dpkg -i cuda-keyring_1.1-1_all.deb`
- `sudo apt-get update`
- `sudo apt install libcudnn8-dev`
- `git clone https://github.com/RWTH-ACS/cricket.git`
- `cd cricket && git submodule update --init`
- `LOG=INFO make`
CUDA program fordítása és futtatása:
- `make NVCCFLAGS="-m64 -cudart shared" GENCODE_FLAGS="-arch=sm_61"`
- `REMOTE_GPU_ADDRESS=10.5.1.3 LD_PRELOAD=/home/cloud/cricket/bin/cricket-client.so ./transpose`
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment