월: 2015 3월

How to install BLAS and LAPACK using source codes

1. Download lapack-3.5.0.tgz (http://www.netlib.org/lapack/#_lapack_version_3_5_0_2) 2. tar xvf lapack-3.5.0.tgz 3. cd lapack-3.5.0/BLAS/SRC 4. gfortran -c -o3 *.f 5. ar rv libblas.a *.o 6. cp libblas.a /usr/local/lib 7. cd ../../SRC 8. gfortran -c -o3 *.f 9. ar rv liblapack.a *.o 6. cp liblapack.a /usr/local/lib

Heap Memory Size for Cuda

#include <iostream> using namespace std; #include <cuda.h> #include <cuda_runtime.h> int main( void ) { cudaError_t stat = cudaSuccess; int devCount = 0; cudaGetDeviceCount( &devCount ); if( !devCount ) { cout << "No Cuda Device." << endl; return 0; } cudaDeviceProp devProp; cudaGetDeviceProperties( &devProp, 0 ); cout << "Global Memory size: " << devProp.totalGlobalMem << "