Skip to content
Prev 46258 / 63458 Next

question about Makeconf and nvcc/CUDA

All right.  I'm still stuck even with all of the help.

Here is the first part:
R CMD INSTALL --no-multiarch cudasize_1.0.tar.gz 
* installing to library 'c:/myRlib'
* installing *source* package 'cudasize' ...
** libs
nvcc -m32 --shared -o cuda4.dll cuda4.cu 
cuda4.cu
tmpxft_00001a88_00000000-5_cuda4.cudafe1.gpu
tmpxft_00001a88_00000000-10_cuda4.cudafe2.gpu
cuda4.cu
tmpxft_00001a88_00000000-5_cuda4.cudafe1.cpp
tmpxft_00001a88_00000000-15_cuda4.ii
installing to c:/myRlib/cudasize/libs/i386
** R
** preparing package for lazy loading
** help
Warning: C:/Users/erin/AppData/Local/Temp/RtmpIfKA2q/R.INSTALL19782457375c/cudasize/man/f1.Rd:33: unexpected '{'
Warning: C:/Users/erin/AppData/Local/Temp/RtmpIfKA2q/R.INSTALL19782457375c/cudasize/man/f1.Rd:37: unexpected '}'
Warning: C:/Users/erin/AppData/Local/Temp/RtmpIfKA2q/R.INSTALL19782457375c/cudasize/man/f1.Rd:31: All text must be in a section
Warning: C:/Users/erin/AppData/Local/Temp/RtmpIfKA2q/R.INSTALL19782457375c/cudasize/man/f1.Rd:32: All text must be in a section
Warning: C:/Users/erin/AppData/Local/Temp/RtmpIfKA2q/R.INSTALL19782457375c/cudasize/man/f1.Rd:34: All text must be in a section
Warning: C:/Users/erin/AppData/Local/Temp/RtmpIfKA2q/R.INSTALL19782457375c/cudasize/man/f1.Rd:35: All text must be in a section
Warning: C:/Users/erin/AppData/Local/Temp/RtmpIfKA2q/R.INSTALL19782457375c/cudasize/man/f1.Rd:36: All text must be in a section
*** installing help indices
** building package indices
** testing if installed package can be loaded
* DONE (cudasize)

c:\Program Files\R\R-3.0.1\bin\i386>R --vanilla
R --vanilla

R version 3.0.1 (2013-05-16) -- "Good Sport"
Copyright (C) 2013 The R Foundation for Statistical Computing
Platform: i386-w64-mingw32/i386 (32-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
library(cudasize)
.C("cuda4",1L,"5")
Error in .C("cuda4", 1L, "5") : C symbol name "cuda4" not in load table
Execution halted

c:\Program Files\R\R-3.0.1\bin\i386>

Then when I run  R CMD check, here are my results:
c:\Program Files\R\R-3.0.1\bin\i386>R CMD check --no-multiarch cudasize_1.0.tar.gz 
R CMD check --no-multiarch cudasize_1.0.tar.gz 
* using log directory 'c:/Program Files/R/R-3.0.1/bin/i386/cudasize.Rcheck'
* using R version 3.0.1 (2013-05-16)
* using platform: i386-w64-mingw32 (32-bit)
* using session charset: ISO8859-1
* checking for file 'cudasize/DESCRIPTION' ... OK
* checking extension type ... Package
* this is package 'cudasize' version '1.0'
* checking package namespace information ... OK
* checking package dependencies ... OK
* checking if this is a source package ... WARNING
Subdirectory 'src' contains:
  cuda4.cu stuff.cu
These are unlikely file names for src files.
* checking if there is a namespace ... OK
* checking for executable files ... OK
* checking for hidden files and directories ... OK
* checking for portable file names ... OK
* checking whether package 'cudasize' can be installed ... WARNING
Found the following significant warnings:
  Warning: c:/Program Files/R/R-3.0.1/bin/i386/cudasize.Rcheck/00_pkg_src/cudasize/man/f1.Rd:33: unexpected '{'
  Warning: c:/Program Files/R/R-3.0.1/bin/i386/cudasize.Rcheck/00_pkg_src/cudasize/man/f1.Rd:37: unexpected '}'
  Warning: c:/Program Files/R/R-3.0.1/bin/i386/cudasize.Rcheck/00_pkg_src/cudasize/man/f1.Rd:31: All text must be in a section
  Warning: c:/Program Files/R/R-3.0.1/bin/i386/cudasize.Rcheck/00_pkg_src/cudasize/man/f1.Rd:32: All text must be in a section
  Warning: c:/Program Files/R/R-3.0.1/bin/i386/cudasize.Rcheck/00_pkg_src/cudasize/man/f1.Rd:34: All text must be in a section
  Warning: c:/Program Files/R/R-3.0.1/bin/i386/cudasize.Rcheck/00_pkg_src/cudasize/man/f1.Rd:35: All text must be in a section
  Warning: c:/Program Files/R/R-3.0.1/bin/i386/cudasize.Rcheck/00_pkg_src/cudasize/man/f1.Rd:36: All text must be in a section
See 'c:/Program Files/R/R-3.0.1/bin/i386/cudasize.Rcheck/00install.out' for details.
* checking installed package size ... OK
* checking package directory ... OK
* checking DESCRIPTION meta-information ... OK
* checking top-level files ... OK
* checking for left-over files ... OK
* checking index information ... OK
* checking package subdirectories ... OK
* checking R files for non-ASCII characters ... OK
* checking R files for syntax errors ... OK
* checking whether the package can be loaded ... OK
* checking whether the package can be loaded with stated dependencies ... OK
* checking whether the package can be unloaded cleanly ... OK
* checking whether the namespace can be loaded with stated dependencies ... OK
* checking whether the namespace can be unloaded cleanly ... OK
* checking loading without being on the library search path ... OK
* checking for unstated dependencies in R code ... OK
* checking S3 generic/method consistency ... OK
* checking replacement functions ... OK
* checking foreign function calls ... OK
* checking R code for possible problems ... OK
* checking Rd files ... WARNING
prepare_Rd: f1.Rd:33: unexpected '{'
prepare_Rd: f1.Rd:37: unexpected '}'
prepare_Rd: f1.Rd:31: All text must be in a section
prepare_Rd: f1.Rd:32: All text must be in a section
prepare_Rd: f1.Rd:34: All text must be in a section
prepare_Rd: f1.Rd:35: All text must be in a section
prepare_Rd: f1.Rd:36: All text must be in a section
* checking Rd metadata ... OK
* checking Rd cross-references ... OK
* checking for missing documentation entries ... OK
* checking for code/documentation mismatches ... OK
* checking Rd \usage sections ... OK
* checking Rd contents ... OK
* checking for unstated dependencies in examples ... OK
* checking line endings in C/C++/Fortran sources/headers ... OK
* checking line endings in Makefiles ... OK
* checking for portable use of $(BLAS_LIBS) and $(LAPACK_LIBS) ... OK
* checking compiled code ... OK
* checking examples ... ERROR
Running examples in 'cudasize-Ex.R' failed
The error most likely occurred in:
Error in .Call("cuda4", 1L, "5") : 
  C symbol name "cuda4" not in load table
Execution halted

c:\Program Files\R\R-3.0.1\bin\i386>

The updated cuda4.dll and symbols.rd files are in cudasize.Rcheck/00_pkg/cudasize/src

Yet again, any help truly appreciated.

Sincerely,
Erin