我正在尝试在Windows计算机上安装R包gputools。根据install instuctions ,不支持Windows。但是,Linux指令都是关于指示r软件包在哪里找到cuda文件夹的,所以我认为这应该在Windows上可行。

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)

我已通过将$(CUDA_HOME)的每个实例替换为C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v6.5/lib并将$(R_HOME)替换为C:/R/R-3.1.2来修改config.mk文件。

之后,我重新压缩了package文件夹,并尝试使用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可以编译有什么想法?

最佳答案

这可能是问题所在:“在此之后,我重新打包了”。你是怎么做的?我从未尝试过,但我认为仅压缩目录可能无法正常工作。
我建议您使用R CMD build gputools_0.28创建修改后的程序包。

10-06 14:22
查看更多