我试图在Windows机器上安装R包gputools.根据 安装指示,不支持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)
# …Run Code Online (Sandbox Code Playgroud)