我正在尝试在Windows机器上安装R软件包gputools。根据安装说明,该软件包不支持Windows系统。然而,Linux的安装说明都是关于指导R软件包在哪里找到cuda文件夹,因此我认为在Windows上应该也可以实现。
config.mk文件如下:
我已经修改了config.mk文件,将每个实例的
之后,我重新压缩了包文件夹,并尝试使用
有没有办法跳过MD5检查?我需要在config.mk文件中指定其他内容吗?
在遵循cdeterman和RHertel的建议后,我删除了MD5文件,并使用
config.mk文件如下:
# set R_HOME, R_INC, and R_LIB to the the R install dir,
# the R header dir, and the R shared library dir on your system
R_HOME := $(shell R RHOME)
R_INC := $(R_HOME)/include
R_LIB := $(R_HOME)/lib
# replace these three lines with
# CUDA_HOME := <path to your cuda install>
ifndef CUDA_HOME
CUDA_HOME := /usr/local/cuda
endif
# set CUDA_INC to CUDA header dir on your system
CUDA_INC := $(CUDA_HOME)/include
ARCH := $(shell uname -m)
# replace these five lines with
# CUDA_LIB := <path to your cuda shared libraries>
ifeq ($(ARCH), i386)
CUDA_LIB := $(CUDA_HOME)/lib
else
CUDA_LIB := $(CUDA_HOME)/lib64
endif
OS := $(shell uname -s)
ifeq ($(OS), Darwin)
ifeq ($(ARCH), x86_64)
DEVICEOPTS := -m64
endif
CUDA_LIB := $(CUDA_HOME)/lib
R_FRAMEWORK := -F$(R_HOME)/.. -framework R
RPATH := -rpath $(CUDA_LIB)
endif
CPICFLAGS := $(shell R CMD config CPICFLAGS)
我已经修改了config.mk文件,将每个实例的
$(CUDA_HOME)
替换为C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v6.5/lib
并将$(R_HOME)
替换为C:/R/R-3.1.2
。之后,我重新压缩了包文件夹,并尝试使用
install.packages("C:/Users/prg/Desktop/gputools_0.28.tar/gputools_0.28/gputools.zip", repos = NULL)
进行安装,但是出现错误file ‘src/config.mk’ has the wrong MD5 checksum
。有没有办法跳过MD5检查?我需要在config.mk文件中指定其他内容吗?
在遵循cdeterman和RHertel的建议后,我删除了MD5文件,并使用
R CMD build gputools_0.28
重新构建了tar文件。现在尝试安装软件包不再出现校验和错误,而是出现编译错误。* installing *source* package 'gputools' ...
** libs
*** arch - i386
no DLL was created
ERROR: compilation failed for package 'gputools'
* removing 'C:/Users/prg/Desktop/gputools/gputools_0.28/gputools.Rcheck/gputools'
我已安装了 Rtools 和 MinGw,有什么方法可以使 gputools 编译通过?
src/config.mk
文件对应的文件行。 - cdeterman