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
| g:=Group((1,4)(2,3)(22,21),(2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,1)); | |
| f:=FreeGroup("x","y"); | |
| hom:=GroupHomomorphismByImagesNC(f,g,GeneratorsOfGroup(f),GeneratorsOfGroup(g)); | |
| PreImagesRepresentative(hom,(1,2)); | |
| PreImagesRepresentative(hom,(21,22)); |
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 add-apt-repository ppa:xorg-edgers/ppa | |
| sudo apt-get update | |
| sudo apt-get install nvidia-346 |
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 |
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
| 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
| 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
| # 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
| 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
| 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
| 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 |
OlderNewer