<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[133150] trunk/dports/math/caffe</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="https://trac.macports.org/changeset/133150">133150</a></dd>
<dt>Author</dt> <dd>hum@macports.org</dd>
<dt>Date</dt> <dd>2015-02-21 23:00:03 -0800 (Sat, 21 Feb 2015)</dd>
</dl>

<h3>Log Message</h3>
<pre>caffe: update to 20150221; add +gpu, +cudnn variants</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkdportsmathcaffePortfile">trunk/dports/math/caffe/Portfile</a></li>
<li><a href="#trunkdportsmathcaffefilespatchMakefilediff">trunk/dports/math/caffe/files/patch-Makefile.diff</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkdportsmathcaffefilespatchMakefileconfigdiff">trunk/dports/math/caffe/files/patch-Makefile.config.diff</a></li>
<li><a href="#trunkdportsmathcaffefilespatchcpuonlydiff">trunk/dports/math/caffe/files/patch-cpu-only.diff</a></li>
<li><a href="#trunkdportsmathcaffefilespatchcudnndiff">trunk/dports/math/caffe/files/patch-cudnn.diff</a></li>
</ul>

<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkdportsmathcaffefilespatchMakefileconfdiff">trunk/dports/math/caffe/files/patch-Makefile.conf.diff</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkdportsmathcaffePortfile"></a>
<div class="modfile"><h4>Modified: trunk/dports/math/caffe/Portfile (133149 => 133150)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/math/caffe/Portfile        2015-02-22 05:54:58 UTC (rev 133149)
+++ trunk/dports/math/caffe/Portfile        2015-02-22 07:00:03 UTC (rev 133150)
</span><span class="lines">@@ -4,20 +4,20 @@
</span><span class="cx"> PortSystem          1.0
</span><span class="cx"> PortGroup           github 1.0
</span><span class="cx"> 
</span><del>-github.setup        BVLC caffe e3c895baac64c7c2da4f30ab7ae35a1c84e63733
-version             20150131
</del><ins>+github.setup        BVLC caffe 682d9da0dba98788dd01723a16a257df4382376c
+version             20150221
</ins><span class="cx"> categories          math science
</span><span class="cx"> maintainers         hum openmaintainer
</span><span class="cx"> 
</span><del>-description         a fast framework for deep learning (this port is for CPU-only)
</del><ins>+description         a fast framework for deep learning
</ins><span class="cx"> long_description    ${description}
</span><span class="cx"> 
</span><span class="cx"> homepage            http://caffe.berkeleyvision.org/
</span><span class="cx"> platforms           darwin
</span><span class="cx"> license             BSD
</span><span class="cx"> 
</span><del>-checksums           rmd160  2ab530b22e986822dc6460193cd4f7cdfdceb47b \
-                    sha256  6cd67cd280edc4ad934b51004cfc0285569b1d58f18d283c9f97cd493133e672
</del><ins>+checksums           rmd160  f8f7ae76ad25ba9fa4fe5f48bf9e7f35ebeda265 \
+                    sha256  e6c1fc9fe0092e3a2f2df1b3092d6641cae1edde9cd0e00144d490623873cc9b
</ins><span class="cx"> 
</span><span class="cx"> depends_lib-append  port:google-glog \
</span><span class="cx">                     port:gflags \
</span><span class="lines">@@ -33,7 +33,7 @@
</span><span class="cx"> depends_run-append  port:wget
</span><span class="cx"> 
</span><span class="cx"> patchfiles          patch-Makefile.diff \
</span><del>-                    patch-Makefile.conf.diff
</del><ins>+                    patch-Makefile.config.diff
</ins><span class="cx"> 
</span><span class="cx"> post-extract {
</span><span class="cx">     copy ${worksrcpath}/Makefile.config.example ${worksrcpath}/Makefile.config
</span><span class="lines">@@ -68,11 +68,27 @@
</span><span class="cx"> 
</span><span class="cx"> notes &quot;
</span><span class="cx"> To try examples, copy ${caffe_root} and run commands.
</span><del>-This port is for CPU-only. Do not forget to train on CPU, not on GPU.
</del><span class="cx"> &quot;
</span><span class="cx"> 
</span><ins>+if {[variant_isset cudnn]} { default_variants +gpu }
+
+if {![variant_isset gpu]} { default_variants +cpu }
+
</ins><span class="cx"> default_variants    +python27 +openblas
</span><span class="cx"> 
</span><ins>+variant cpu conflicts gpu description {Use CPU only} {
+    patchfiles-append  patch-cpu-only.diff
+    notes-append &quot;
+This port is for CPU-only. Do not forget to train on CPU, not on GPU.
+&quot;
+}
+
+variant gpu conflicts cpu description {Use GPU and CUDA in /usr/local/cuda} {}
+
+variant cudnn description {Use cuDNN} {
+    patchfiles-append  patch-cudnn.diff
+}
+
</ins><span class="cx"> variant openblas description {Use OpenBLAS} {
</span><span class="cx">     depends_lib-append port:OpenBLAS
</span><span class="cx">     patchfiles-append  patch-openblas.diff
</span></span></pre></div>
<a id="trunkdportsmathcaffefilespatchMakefileconfdiff"></a>
<div class="delfile"><h4>Deleted: trunk/dports/math/caffe/files/patch-Makefile.conf.diff (133149 => 133150)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/math/caffe/files/patch-Makefile.conf.diff        2015-02-22 05:54:58 UTC (rev 133149)
+++ trunk/dports/math/caffe/files/patch-Makefile.conf.diff        2015-02-22 07:00:03 UTC (rev 133150)
</span><span class="lines">@@ -1,64 +0,0 @@
</span><del>---- Makefile.config.orig        2014-12-18 01:12:23.000000000 +0900
-+++ Makefile.config        2014-12-20 16:03:45.000000000 +0900
-@@ -5,26 +5,26 @@
- # USE_CUDNN := 1

- # CPU-only switch (uncomment to build without GPU support).
--# CPU_ONLY := 1
-+CPU_ONLY := 1

- # To customize your choice of compiler, uncomment and set the following.
- # N.B. the default for Linux is g++ and the default for OSX is clang++
- # CUSTOM_CXX := g++

- # CUDA directory contains bin/ and lib/ directories that we need.
--CUDA_DIR := /usr/local/cuda
-+# CUDA_DIR := /usr/local/cuda
- # On Ubuntu 14.04, if cuda tools are installed via
- # &quot;sudo apt-get install nvidia-cuda-toolkit&quot; then use this instead:
- # CUDA_DIR := /usr

- # CUDA architecture setting: going with all of them.
- # For CUDA &lt; 6.0, comment the *_50 lines for compatibility.
--CUDA_ARCH := -gencode arch=compute_20,code=sm_20 \
--                -gencode arch=compute_20,code=sm_21 \
--                -gencode arch=compute_30,code=sm_30 \
--                -gencode arch=compute_35,code=sm_35 \
--                -gencode arch=compute_50,code=sm_50 \
--                -gencode arch=compute_50,code=compute_50
-+# CUDA_ARCH := -gencode arch=compute_20,code=sm_20 \
-+#                 -gencode arch=compute_20,code=sm_21 \
-+#                 -gencode arch=compute_30,code=sm_30 \
-+#                 -gencode arch=compute_35,code=sm_35 \
-+#                 -gencode arch=compute_50,code=sm_50 \
-+#                 -gencode arch=compute_50,code=compute_50

- # BLAS choice:
- # atlas for ATLAS (default)
-@@ -44,20 +44,21 @@

- # NOTE: this is required only if you will compile the python interface.
- # We need to be able to find Python.h and numpy/arrayobject.h.
--PYTHON_INCLUDE := /usr/include/python2.7 \
--                /usr/lib/python2.7/dist-packages/numpy/core/include
-+_PYTHON_ROOT := $(_PREFIX)/Library/Frameworks/Python.framework/Versions/2.7
-+PYTHON_INCLUDE := $(_PYTHON_ROOT)/include/python2.7 \
-+                $(_PYTHON_ROOT)/lib/python2.7/site-packages/numpy/core/include
- # Anaconda Python distribution is quite popular. Include path:
- # PYTHON_INCLUDE := $(HOME)/anaconda/include \
-                 # $(HOME)/anaconda/include/python2.7 \
-                 # $(HOME)/anaconda/lib/python2.7/site-packages/numpy/core/include

- # We need to be able to find libpythonX.X.so or .dylib.
--PYTHON_LIB := /usr/lib
-+PYTHON_LIB := $(_PREFIX)/lib
- # PYTHON_LIB := $(HOME)/anaconda/lib

- # Whatever else you find you need goes here.
--INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include
--LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib
-+INCLUDE_DIRS := $(PYTHON_INCLUDE) $(_PREFIX)/include /usr/include
-+LIBRARY_DIRS := $(PYTHON_LIB) /usr/lib

- BUILD_DIR := build
- DISTRIBUTE_DIR := distribute
</del></span></pre></div>
<a id="trunkdportsmathcaffefilespatchMakefileconfigdiff"></a>
<div class="addfile"><h4>Added: trunk/dports/math/caffe/files/patch-Makefile.config.diff (0 => 133150)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/math/caffe/files/patch-Makefile.config.diff                                (rev 0)
+++ trunk/dports/math/caffe/files/patch-Makefile.config.diff        2015-02-22 07:00:03 UTC (rev 133150)
</span><span class="lines">@@ -0,0 +1,33 @@
</span><ins>+--- Makefile.config.orig        2015-02-21 05:20:23.000000000 +0900
++++ Makefile.config        2015-02-22 14:36:58.000000000 +0900
+@@ -44,8 +44,9 @@

+ # NOTE: this is required only if you will compile the python interface.
+ # We need to be able to find Python.h and numpy/arrayobject.h.
+-PYTHON_INCLUDE := /usr/include/python2.7 \
+-                /usr/lib/python2.7/dist-packages/numpy/core/include
++_PYTHON_ROOT := $(_PREFIX)/Library/Frameworks/Python.framework/Versions/2.7
++PYTHON_INCLUDE := $(_PYTHON_ROOT)/include/python2.7 \
++                $(_PYTHON_ROOT)/lib/python2.7/site-packages/numpy/core/include
+ # Anaconda Python distribution is quite popular. Include path:
+ # Verify anaconda location, sometimes it's in root.
+ # ANACONDA_HOME := $(HOME)/anaconda
+@@ -54,15 +55,15 @@
+                 # $(ANACONDA_HOME)/lib/python2.7/site-packages/numpy/core/include \

+ # We need to be able to find libpythonX.X.so or .dylib.
+-PYTHON_LIB := /usr/lib
++PYTHON_LIB := $(_PREFIX)/lib
+ # PYTHON_LIB := $(ANACONDA_HOME)/lib

+ # Uncomment to support layers written in Python (will link against Python libs)
+ # WITH_PYTHON_LAYER := 1

+ # Whatever else you find you need goes here.
+-INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include
+-LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib
++INCLUDE_DIRS := $(PYTHON_INCLUDE) $(_PREFIX)/include /usr/include
++LIBRARY_DIRS := $(PYTHON_LIB) /usr/lib

+ # Uncomment to use `pkg-config` to specify OpenCV library paths.
+ # (Usually not necessary -- OpenCV libraries are normally installed in one of the above $LIBRARY_DIRS.)
</ins></span></pre></div>
<a id="trunkdportsmathcaffefilespatchMakefilediff"></a>
<div class="modfile"><h4>Modified: trunk/dports/math/caffe/files/patch-Makefile.diff (133149 => 133150)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/math/caffe/files/patch-Makefile.diff        2015-02-22 05:54:58 UTC (rev 133149)
+++ trunk/dports/math/caffe/files/patch-Makefile.diff        2015-02-22 07:00:03 UTC (rev 133150)
</span><span class="lines">@@ -1,53 +1,37 @@
</span><del>---- Makefile.orig        2014-12-06 01:12:55.000000000 +0900
-+++ Makefile        2014-12-21 18:19:42.000000000 +0900
-@@ -167,10 +167,10 @@
</del><ins>+--- Makefile.orig        2015-02-21 05:20:23.000000000 +0900
++++ Makefile        2015-02-22 14:29:16.000000000 +0900
+@@ -162,9 +162,9 @@
+         LIBRARIES := cudart cublas curand
</ins><span class="cx">  endif
</span><span class="cx">  LIBRARIES += glog gflags protobuf leveldb snappy \
</span><del>-         lmdb \
--        boost_system \
-+        boost_system-mt \
-         hdf5_hl hdf5 \
-         opencv_core opencv_highgui opencv_imgproc pthread
</del><ins>+-        lmdb boost_system hdf5_hl hdf5 m \
++        lmdb boost_system-mt hdf5_hl hdf5 m \
+         opencv_core opencv_highgui opencv_imgproc
</ins><span class="cx"> -PYTHON_LIBRARIES := boost_python python2.7
</span><span class="cx"> +PYTHON_LIBRARIES := boost_python-mt python2.7
</span><span class="cx">  WARNINGS := -Wall -Wno-sign-compare
</span><span class="cx">  
</span><span class="cx">  ##############################
</span><del>-@@ -239,13 +239,13 @@
</del><ins>+@@ -231,12 +231,12 @@
</ins><span class="cx">  # clang++ instead of g++
</span><del>- # libstdc++ instead of libc++ for CUDA compatibility on 10.9
</del><ins>+ # libstdc++ for NVCC compatibility on OS X &gt;= 10.9 with CUDA &lt; 7.0
</ins><span class="cx">  ifeq ($(OSX), 1)
</span><span class="cx"> -        CXX := /usr/bin/clang++
</span><del>-+        CXX ?= /usr/bin/clang++
-         # clang throws this warning for cuda headers
-         WARNINGS += -Wno-unneeded-internal-declaration
--        ifneq ($(findstring 10.9, $(shell sw_vers -productVersion)),)
</del><ins>+-        CUDA_VERSION := $(shell $(CUDA_DIR)/bin/nvcc -V | grep -o 'release \d' | grep -o '\d')
+-        ifeq ($(shell echo $(CUDA_VERSION) \&lt; 7.0 | bc), 1)
</ins><span class="cx"> -                CXXFLAGS += -stdlib=libstdc++
</span><span class="cx"> -                LINKFLAGS += -stdlib=libstdc++
</span><span class="cx"> -        endif
</span><del>-+#        ifneq ($(findstring 10.9, $(shell sw_vers -productVersion)),)
</del><ins>++        CXX ?= /usr/bin/clang++
++#        CUDA_VERSION := $(shell $(CUDA_DIR)/bin/nvcc -V | grep -o 'release \d' | grep -o '\d')
++#        ifeq ($(shell echo $(CUDA_VERSION) \&lt; 7.0 | bc), 1)
</ins><span class="cx"> +#                CXXFLAGS += -stdlib=libstdc++
</span><span class="cx"> +#                LINKFLAGS += -stdlib=libstdc++
</span><span class="cx"> +#        endif
</span><del>-         # boost::thread is called boost_thread-mt to mark multithreading on OS X
-         LIBRARIES += boost_thread-mt
- endif
-@@ -303,6 +303,14 @@
-                 BLAS_INCLUDE ?= /System/Library/Frameworks/vecLib.framework/Versions/Current/Headers/
-                 LIBRARIES += cblas
-                 LDFLAGS += -framework vecLib
-+                # fix for vecLib path on Xcode 6
-+                XCODEVERSION := $(shell xcodebuild -version | head -1 | cut -f2 -d\ | cut -f1 -d.)
-+                ifeq ($(shell echo $(XCODEVERSION) \&gt;= 6  | bc), 1)
-+                        FRAMEWORKS_DIR = /System/Library/Frameworks/Accelerate.framework/Versions/Current/Frameworks
-+                        BLAS_INCLUDE = $(FRAMEWORKS_DIR)/vecLib.framework/Headers
-+                        LDFLAGS += -F$(FRAMEWORKS_DIR)
-+                endif
-+
-         endif
- endif
- INCLUDE_DIRS += $(BLAS_INCLUDE)
-@@ -310,7 +318,7 @@
</del><ins>+         # clang throws this warning for cuda headers
+         WARNINGS += -Wno-unneeded-internal-declaration
+         # gtest needs to use its own tuple to not conflict with clang
+@@ -337,7 +337,7 @@
</ins><span class="cx">  
</span><span class="cx">  # Complete build flags.
</span><span class="cx">  COMMON_FLAGS += $(foreach includedir,$(INCLUDE_DIRS),-I$(includedir))
</span><span class="lines">@@ -56,12 +40,12 @@
</span><span class="cx">  NVCCFLAGS += -ccbin=$(CXX) -Xcompiler -fPIC $(COMMON_FLAGS)
</span><span class="cx">  # mex may invoke an older gcc that is too liberal with -Wuninitalized
</span><span class="cx">  MATLAB_CXXFLAGS := $(CXXFLAGS) -Wno-uninitialized
</span><del>-@@ -485,7 +493,7 @@
</del><ins>+@@ -535,7 +535,7 @@
</ins><span class="cx">  # Target for extension-less symlinks to tool binaries with extension '*.bin'.
</span><span class="cx">  $(TOOL_BUILD_DIR)/%: $(TOOL_BUILD_DIR)/%.bin | $(TOOL_BUILD_DIR)
</span><span class="cx">          @ $(RM) $@
</span><span class="cx"> -        @ ln -s $(abspath $&lt;) $@
</span><span class="cx"> +        @ cd $(TOOL_BUILD_DIR); ln -s $(notdir $&lt;) $(notdir $@)
</span><span class="cx">  
</span><del>- $(TOOL_BINS): %.bin : %.o $(STATIC_NAME)
-         $(CXX) $&lt; $(STATIC_NAME) -o $@ $(LINKFLAGS) $(LDFLAGS)
</del><ins>+ $(TOOL_BINS): %.bin : %.o | $(DYNAMIC_NAME)
+         @ echo CXX/LD -o $@
</ins></span></pre></div>
<a id="trunkdportsmathcaffefilespatchcpuonlydiff"></a>
<div class="addfile"><h4>Added: trunk/dports/math/caffe/files/patch-cpu-only.diff (0 => 133150)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/math/caffe/files/patch-cpu-only.diff                                (rev 0)
+++ trunk/dports/math/caffe/files/patch-cpu-only.diff        2015-02-22 07:00:03 UTC (rev 133150)
</span><span class="lines">@@ -0,0 +1,37 @@
</span><ins>+--- Makefile.config.orig        2014-12-18 01:12:23.000000000 +0900
++++ Makefile.config        2014-12-20 16:03:45.000000000 +0900
+@@ -5,26 +5,26 @@
+ # USE_CUDNN := 1

+ # CPU-only switch (uncomment to build without GPU support).
+-# CPU_ONLY := 1
++CPU_ONLY := 1

+ # To customize your choice of compiler, uncomment and set the following.
+ # N.B. the default for Linux is g++ and the default for OSX is clang++
+ # CUSTOM_CXX := g++

+ # CUDA directory contains bin/ and lib/ directories that we need.
+-CUDA_DIR := /usr/local/cuda
++# CUDA_DIR := /usr/local/cuda
+ # On Ubuntu 14.04, if cuda tools are installed via
+ # &quot;sudo apt-get install nvidia-cuda-toolkit&quot; then use this instead:
+ # CUDA_DIR := /usr

+ # CUDA architecture setting: going with all of them.
+ # For CUDA &lt; 6.0, comment the *_50 lines for compatibility.
+-CUDA_ARCH := -gencode arch=compute_20,code=sm_20 \
+-                -gencode arch=compute_20,code=sm_21 \
+-                -gencode arch=compute_30,code=sm_30 \
+-                -gencode arch=compute_35,code=sm_35 \
+-                -gencode arch=compute_50,code=sm_50 \
+-                -gencode arch=compute_50,code=compute_50
++# CUDA_ARCH := -gencode arch=compute_20,code=sm_20 \
++#                 -gencode arch=compute_20,code=sm_21 \
++#                 -gencode arch=compute_30,code=sm_30 \
++#                 -gencode arch=compute_35,code=sm_35 \
++#                 -gencode arch=compute_50,code=sm_50 \
++#                 -gencode arch=compute_50,code=compute_50

+ # BLAS choice:
+ # atlas for ATLAS (default)
</ins></span></pre></div>
<a id="trunkdportsmathcaffefilespatchcudnndiff"></a>
<div class="addfile"><h4>Added: trunk/dports/math/caffe/files/patch-cudnn.diff (0 => 133150)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/math/caffe/files/patch-cudnn.diff                                (rev 0)
+++ trunk/dports/math/caffe/files/patch-cudnn.diff        2015-02-22 07:00:03 UTC (rev 133150)
</span><span class="lines">@@ -0,0 +1,11 @@
</span><ins>+--- Makefile.config.orig        2015-02-22 14:13:41.000000000 +0900
++++ Makefile.config        2015-02-22 14:15:21.000000000 +0900
+@@ -2,7 +2,7 @@
+ # Contributions simplifying and improving our build system are welcome!

+ # cuDNN acceleration switch (uncomment to build with cuDNN).
+-# USE_CUDNN := 1
++USE_CUDNN := 1

+ # CPU-only switch (uncomment to build without GPU support).
+ # CPU_ONLY := 1
</ins></span></pre>
</div>
</div>

</body>
</html>