- 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 // Create a csv file to store the devicequery value
sudo chmod ugo+rwx devicequery.csv // read only -> write & read only
< Compile >
- deviceQuery.cpp 수정
- sudo make ( 에러나면 sudo make clean )
- ./deviceQuery
< The part I added >
#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/heoyunseo/desktop/aws_pem/ys-oregon2 -r ubuntu@1.11.11.11:/usr/local/cuda-11.4/samples/1_Utilities/deviceQuery/devicequery.csv .