Save devicequery result as csv
- Original_deviceQuery : origianl deviceQuery.cpp
(위치는 우분투기준 /usr/local/cuda-11.4/samples/1_Utilities/deviceQuery) - Outputcsv_deviceQuery : deviceQuery.cpp file that saves the devicequery result as csv
< Make csv file and permission setting >
sudo touch devicequery.csv // devicequery 값을 저장해줄 csv 파일 생성
sudo chmod ugo+rwx devicequery.csv // read only -> write & read only
< Compile >
- deviceQuery.cpp 수정 (위에 outputcsv_deviceQuery.cpp로 바꿔주기)
- sudo make ( 에러나면 sudo make clean )
- ./deviceQuery
< 추가해준 부분 간단히보기 >
#include <fstream>
std::ofstream myfile;
myfile.open ("devicequery.csv");
myfile << "Maximum Texture Dimension Size (x,y,z)," << deviceProp.maxTexture1D;
myfile.close();
finally save the devicequery.csv locally
scp -i /Users/hhhhhyyyyy/desktop/aws_pem/ys.pem -r ubuntu@1.11.11.11:/usr/local/cuda-11.4/samples/1_Utilities/deviceQuery/devicequery.csv .
'<하드웨어> > GPU' 카테고리의 다른 글
[Ubuntu] DCGM 설치하고 실행해보기 (0) | 2022.07.04 |
---|---|
Ubuntu18.04+cuda11.4+python3.7+tensorflow2.7.0+cuDNN8.2.4 설치 (0) | 2022.04.10 |
GPU register,global,shared,local,constant,texture 메모리 정의구분 및 계층구조 + gpu구조 (0) | 2022.03.15 |
DeviceQuery 정리 (0) | 2022.03.15 |
DeviceQuery 실행 (0) | 2022.03.03 |