This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [./bin/x86_64/linux/release/BlackScholes] - Starting... | |
| GPU Device 0: "GeForce GTX TITAN" with compute capability 3.5 | |
| Initializing data... | |
| ...allocating CPU memory for options. | |
| ...allocating GPU memory for options. | |
| ...generating input data in CPU mem. | |
| ...copying input data to GPU mem. | |
| Data init done. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| > library(gputools) | |
| > | |
| > set.seed(5446) | |
| > p <- 20 | |
| > X <- matrix(rnorm(2^p),ncol = 2^(p/2)) | |
| > | |
| > dtime <- system.time(d <- dist(X)) | |
| > gputime <- system.time(gpud <- gpuDist(X)) | |
| > | |
| > dtime |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| library(gputools) | |
| set.seed(5446) | |
| p <- 20 | |
| X <- matrix(rnorm(2^p),ncol = 2^(p/2)) | |
| dtime <- system.time(d <- dist(X)) | |
| gputime <- system.time(gpud <- gpuDist(X)) | |
| dtime |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo -s | |
| export CUDA_HOME=/usr/local/cuda | |
| export PATH=${CUDA_HOME}/bin:${PATH} | |
| export LD_LIBRARY_PATH=${CUDA_HOME}/lib64:$LD_LIBRARY_PATH | |
| export R_INC_PATH=/usr/lib/R/include:${LD_LIBRARY_PATH} | |
| R CMD INSTALL gputools_0.28.tar.gz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| R CMD build gputools | |
| R CMD INSTALL gputools_0.28.tar.gz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Architectures 1.0 and 1.3 are obsolete | |
| # Add newer architectures 3.5, 3.7, 5.0 and 5.2 | |
| # Replace: | |
| #NVCC := $(CUDA_HOME)/bin/nvcc -gencode arch=compute_10,code=sm_10 -gencode arch=compute_13,code=sm_13 -gencode arch=compute_20,code=sm_20 -gencode arch=compute_30,code=sm_30 | |
| # With: | |
| NVCC := $(CUDA_HOME)/bin/nvcc -gencode arch=compute_20,code=sm_20 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_37,code=sm_37 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_52,code=sm_52 -gencode arch=compute_52,code=compute_52 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git clone https://github.com/nullsatz/gputools |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mkdir ~/cuda_test | |
| cp -R /usr/local/cuda/samples/* ~/cuda_test | |
| cd ~/cuda_test | |
| make |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # CUDA | |
| # Works with CUDA 7.0, as the NVIDIA CUDA 7.0 Debian package has a symlink set at /usr/local/cuda. | |
| export CUDA_HOME=/usr/local/cuda | |
| export PATH=${CUDA_HOME}/bin:${PATH} | |
| export LD_LIBRARY_PATH=${CUDA_HOME}/lib64:$LD_LIBRARY_PATH | |
| # R |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo dpkg -i cuda-repo-ubuntu1410-7-0-rc_7.0-18_amd64.deb | |
| sudo apt-get install cuda |