Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/dok.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClement Farabet <clement.farabet@gmail.com>2012-06-28 03:48:19 +0400
committerClement Farabet <clement.farabet@gmail.com>2012-06-28 03:48:19 +0400
commitded180850284f7b58f42c4d5caeee3d562bb0cc7 (patch)
tree0dea090803098775b424a7c7f075d6df2ac56921
parent95e758def782bc073ddd45e1acf3e0ca50b660ee (diff)
Added extra help to build Torch on MacOS (with OPENMP)
-rw-r--r--dokinstall/index.dok14
1 files changed, 14 insertions, 0 deletions
diff --git a/dokinstall/index.dok b/dokinstall/index.dok
index 35b37ae..e4b4ac2 100644
--- a/dokinstall/index.dok
+++ b/dokinstall/index.dok
@@ -280,6 +280,20 @@ website]] and install it.
An excellent BLAS/LAPACK implementation is also recommended for speed. See
our [[blas|BLAS recommendations]].
+Last but not least, GCC >= 4.6 is *required* to enable OpenMP on MacOS X. This
+is a bit crazy, but compiling against OpenMP with previous versions of GCC
+will give you random segfaults and trap errors (a known issue on the web).
+We strongly recommend you to install GCC 4.6, to fully benefit from Torch's
+fast numeric routines. A very simple way of doing so is to install the
+[[http://gcc.gnu.org/wiki/GFortranBinaries|GFortran]] libraries, which are
+packaged as a simple dmg, ready to install. That'll automatically install gcc
+and g++. Once this is done, set your CC and CXX before building Torch:
+
+<file>
+export CC=/usr/local/gfortran/bin/gcc
+export CXX=/usr/local/gfortran/bin/g++
+</file>
+
==== B. Getting Torch sources ====
Same as [[#install.sources|getting sources]] for linux.