-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
860 additions
and
74 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
.idea | ||
cmake-build-* | ||
**/*.cbp | ||
**/CMakeCache.txt | ||
**/CMakeFiles | ||
**/.DS_Store | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
#!/bin/sh | ||
|
||
rm -rf /opt/python | ||
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test | ||
wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/cuda-repo-ubuntu1404_8.0.44-1_amd64.deb | ||
sudo dpkg -i cuda-repo-ubuntu1404_8.0.44-1_amd64.deb | ||
sudo apt-get update | ||
sudo apt-get install -y --no-install-suggests --no-install-recommends g++-5 python3-dev python3-numpy cuda-cudart-dev-8-0 cuda-curand-dev-8-0 cuda-core-8-0 cuda-misc-headers-8-0 | ||
sudo apt-get install -y --no-install-suggests --no-install-recommends g++-5 python3-dev python3-numpy r-base-core cuda-cudart-dev-8-0 cuda-curand-dev-8-0 cuda-core-8-0 cuda-misc-headers-8-0 | ||
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 1 --slave /usr/bin/g++ g++ /usr/bin/g++-5 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
#!/bin/sh | ||
|
||
brew install llvm --with-clang | ||
brew install python3 | ||
brew tap homebrew/science | ||
brew install python3 r | ||
pip3 install numpy | ||
brew cask update | ||
brew cask install --verbose cuda |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# CMake module to find R | ||
# - Try to find R | ||
# Once done, this will define | ||
# | ||
# R_FOUND - system has R | ||
# R_INCLUDE_DIRS - the R include directories | ||
# R_LIBRARIES - link these to use R | ||
# R_ROOT_DIR - As reported by R | ||
# Autor: Omar Andres Zapata Mesa 31/05/2013 | ||
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") | ||
set(CMAKE_FIND_APPBUNDLE "LAST") | ||
endif() | ||
find_program(R_EXECUTABLE NAMES R R.exe) | ||
#---searching R installtion unsing R executable | ||
if(R_EXECUTABLE) | ||
execute_process(COMMAND ${R_EXECUTABLE} RHOME | ||
OUTPUT_VARIABLE R_ROOT_DIR | ||
OUTPUT_STRIP_TRAILING_WHITESPACE) | ||
find_path(R_INCLUDE_DIR R.h | ||
HINTS ${R_ROOT_DIR} | ||
PATHS /usr/local/lib /usr/local/lib64 /usr/share | ||
PATH_SUFFIXES include R/include | ||
DOC "Path to file R.h") | ||
find_library(R_LIBRARY R | ||
HINTS ${R_ROOT_DIR}/lib | ||
DOC "R library (example libR.a, libR.dylib, etc.).") | ||
endif() | ||
#---setting include dirs and libraries | ||
set(R_LIBRARIES ${R_LIBRARY}) | ||
set(R_INCLUDE_DIRS ${R_INCLUDE_DIR}) | ||
foreach(_cpt ${R_FIND_COMPONENTS}) | ||
execute_process(COMMAND echo "cat(find.package('${_cpt}'))" | ||
COMMAND ${R_EXECUTABLE} --vanilla --slave | ||
OUTPUT_VARIABLE _cpt_path | ||
OUTPUT_STRIP_TRAILING_WHITESPACE) | ||
find_library(R_${_cpt}_LIBRARY | ||
lib${_cpt}.so lib${_cpt}.dylib | ||
HINTS ${_cpt_path}/lib) | ||
if(R_${_cpt}_LIBRARY) | ||
mark_as_advanced(R_${_cpt}_LIBRARY) | ||
list(APPEND R_LIBRARIES ${R_${_cpt}_LIBRARY}) | ||
endif() | ||
find_path(R_${_cpt}_INCLUDE_DIR ${_cpt}.h HINTS ${_cpt_path} PATH_SUFFIXES include R/include) | ||
if(R_${_cpt}_INCLUDE_DIR) | ||
mark_as_advanced(R_${_cpt}_INCLUDE_DIR) | ||
list(APPEND R_INCLUDE_DIRS ${R_${_cpt}_INCLUDE_DIR}) | ||
endif() | ||
if(R_${_cpt}_INCLUDE_DIR AND R_${_cpt}_LIBRARY) | ||
list(REMOVE_ITEM R_FIND_COMPONENTS ${_cpt}) | ||
endif() | ||
endforeach() | ||
# Handle the QUIETLY and REQUIRED arguments and set R_FOUND to TRUE if all listed variables are TRUE | ||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(R DEFAULT_MSG R_EXECUTABLE R_INCLUDE_DIR R_LIBRARY) | ||
mark_as_advanced(R_FOUND R_EXECUTABLE R_INCLUDE_DIR R_LIBRARY) |
Oops, something went wrong.