[GPU] GPGPU-sssim ispass benchmark build
1. git clone
git clone https://github.com/gpgpu-sim/ispass2009-benchmarks.git
2. make
아마 Makefile을 수정하거나 해야 하는데 어떻게 하는지 아직 모름~
make: Nothing to be done for 'Makefile.ispass-2009'.
ERROR *** could not find /cuda-samples/C/lib/libcutil_x86_64.a (or libcutil.a)
Build the NVIDIA GPU Computing SDK; please see README.ISPASS-2009
make: *** [Makefile.ispass-2009:32: check_environment] Error 205
Gpu computing SDK 를 다운로드 받아야 한다. 내 컴퓨터로 다운로드 받은 다음에 도커로 옮길 수 있으면...
3. gpucomputing SDK 옮기기
인터넷에서 gpucomputingsdk 파일을 다운로드 받았다.
이걸 파일질라를 통해 서버로 옮겼다.
그다음 eun_ispass 컨테이너에 담으면 되는데, cp 명령어를 사용한다.
docker cp [파일이름] [컨테이너이름]:[파일위치]
docker cp gpucomputingsdk_4.0.17_linux.run eun_ispass:../
4. Build NVIDIA GPU Computing SDK
./gpucomputingsdk_4.0.17_linux.run
디폴트로 /root/NVIDIA_GPU_Computing_SDK에 설치했다.
make 를 하면 에러가 난다.
~/NVIDIA_GPU_Computing_SDK# make
nvcc fatal : Unsupported gpu architecture 'compute_10'
make[2]: *** [../../common/common.mk:409: obj/x86_64/release/ParticleSystem.cu.o] Error 1
make[2]: Leaving directory '/root/NVIDIA_GPU_Computing_SDK/C/src/smokeParticles'
make[1]: *** [Makefile:43: src/smokeParticles/Makefile.ph_build] Error 2
make[1]: Leaving directory '/root/NVIDIA_GPU_Computing_SDK/C'
make: *** [Makefile:4: all] Error 2
computing SDK도 Makefile을 수정해야 할 것 같은데 어떻게 하는지 모름
5. setup
오오 굿굿
근데 내가
./setup_config.sh --cleanup
으로 configs를 지워버렸다. 왜 그랬지?
./setup_config.sh ../configs/tested-cfgs/SM2_GTX480
ispass에서 이렇게 하면 된다. 물론 gtx일 필요는 없음
이걸 실행해 보려고 하면,
라고 한다. 뭘까리...
이거 아닐지. 알아보기로 한다.
그다음 ispass 로 가서 make를 했는데 에러가 났다.
ERROR *** could not find /root/NVIDIA_GPU_Computing_SDK/C/lib/libcutil_x86_64.a (or libcutil.a)
Build the NVIDIA GPU Computing SDK; please see README.ISPASS-2009
make: *** [Makefile.ispass-2009:32: check_environment] Error 205
~/NVIDIA_GPU_Computing_SDK로 이동해서 make를 해주었다.
그 다음 ispass 에서 make했더니 다른 에러가 난다.
[root@2b004704aa71:/ispass2009-benchmarks# make -f Makefile.ispass-2009
rm -f ../common; ln -s /root/NVIDIA_GPU_Computing_SDK/C/common ../common;
export BINDIR=/ispass2009-benchmarks/bin/; export ROOTDIR=/root/NVIDIA_GPU_Computing_SDK/C/src/; export BINSUBDIR=release; export BOOST_LIB=/usr/lib64; export BOOST_ROOT=/usr/include; export BOOST_VER=""; export OPENMPI_BINDIR=/usr/lib64/mpi/gcc/openmpi/bin/; make noinline=0 -C AES
make[1]: Entering directory '/ispass2009-benchmarks/AES'
cc1plus: warning: command line option '-Wimplicit' is valid for C/ObjC but not for C++
In file included from aescuda.cpp:28:
aesCudaUtils.h:27:10: fatal error: boost/filesystem/operations.hpp: No such file or directory
27 | #include "boost/filesystem/operations.hpp"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [../../common/common.mk:405: obj/x86_64/release/aescuda.cpp.o] Error 1
make[1]: Leaving directory '/ispass2009-benchmarks/AES'
make: *** [Makefile.ispass-2009:17: default] Error 2
/usr/bin/env: 'python': No such file or directory
라는 에러 때문에
ln -sf /usr/lib/python3 /usr/bin/env
링크 생성해 준다.
/bin/sh: 1: ./parboil: Permission denied
cp: cannot stat 'benchmarks/cp/build/cuda_short/cp': No such file or directory
make: *** [Makefile.ispass-2009:19: default] Error 1
benchmarks/cp/build/cuda_short/cp 이게 뭔지,,
config 파일과 링크 생성하기
cp ispass2009-benchmarks/ ./setup_config.sh GTX480
./setup_config.sh ../configs/tested-cfgs/SM2_GTX480
애플리케이션 디렉토리에서
sh README.GPGPU-Sim
/usr/local/cuda/bin/ 을 환경변수에 추가해도 같은 에러가 난다.
ispass 의 Makefile에 export
vim ~./bashrc 에서 환경 변수 path를 추가했다.
그래도 같은 에러~~~~
Makefil의 경로를 수정했다. root앞에 /를 붙여주었다.
그러고 나니까 다른 에러가 났다.
/bin/sh: 1: ./parboil: Permission denied
cp: cannot stat 'benchmarks/cp/build/cuda_short/cp': No such file or directory
make: *** [Makefile.ispass-2009:19: default] Error 1
이게 무슨 뜻이지...~