{"id":544,"date":"2022-11-19T15:57:43","date_gmt":"2022-11-19T23:57:43","guid":{"rendered":"https:\/\/iotlab.sdsu.edu\/?page_id=544"},"modified":"2022-11-19T17:20:48","modified_gmt":"2022-11-20T01:20:48","slug":"building-cuda-enabled-caffe-on-hgx-system-notos-sdsu-edu","status":"publish","type":"page","link":"https:\/\/iotlab.sdsu.edu\/index.php\/building-cuda-enabled-caffe-on-hgx-system-notos-sdsu-edu\/","title":{"rendered":"Building CUDA enabled Caffe on HGX system notos.sdsu.edu"},"content":{"rendered":"\n<p> <\/p>\n\n\n\n<p><strong>How to build the Caffe deep learning framework from Berkeley AI Research (<a href=\"http:\/\/bair.berkeley.edu\/\">BAIR<\/a>)\/The Berkeley Vision and Learning Center (BVLC) on <em>notos.sdsu.edu<\/em>.<\/strong><\/p>\n\n\n\n<p>Clone Caffe repository:<\/p>\n\n\n\n<p>$ git clone <a href=\"https:\/\/github.com\/BVLC\/caffe.git\">https:\/\/github.com\/BVLC\/caffe.git<\/a><\/p>\n\n\n\n<p>$ cd caffe<\/p>\n\n\n\n<p>$ mkdir build<\/p>\n\n\n\n<p>$ cd build<\/p>\n\n\n\n<p>cmake -DUSE_CUDNN=0 \\<br>-DProtobuf_PROTOC_EXECUTABLE=\/usr\/bin\/protoc \\<br>-DProtobuf_LIBRARY_DEBUG=\/usr\/lib\/x86_64-linux-gnu\/libprotobuf.so \\<br>-DProtobuf_LIBRARY_RELEASE=\/usr\/lib\/x86_64-linux-gnu\/libprotobuf.so \\<br>-DProtobuf_LITE_LIBRARY_DEBUG=\/usr\/lib\/x86_64-linux-gnu\/libprotobuf-lite.so \\<br>-DProtobuf_LITE_LIBRARY_RELEASE=\/usr\/lib\/x86_64-linux-gnu\/libprotobuf-lite.so \\<br>-DProtobuf_PROTOC_LIBRARY_DEBUG=\/usr\/lib\/x86_64-linux-gnu\/libprotoc.so.17 \\<br>-DProtobuf_PROTOC_LIBRARY_RELEASE=\/usr\/lib\/x86_64-linux-gnu\/libprotoc.so.17 \\<br>-DPYTHON_EXECUTABLE:FILEPATH=\/usr\/bin\/python3.8 \\<br>-DPYTHON_INCLUDE_DIR:PATH=\/usr\/include\/python3.8 \\<br>-DPYTHON_LIBRARY:FILEPATH=\/usr\/lib\/x86_64-linux-gnu\/libpython3.8.so \\<br><strong>..<\/strong><\/p>\n\n\n\n<p>$ make VERBOSE=1 -j42 all<\/p>\n\n\n\n<p>$ export PYTHONPATH=\/mnt\/beegfs\/home\/<em>username<\/em>\/caffe\/python<\/p>\n\n\n\n<p>$\u00a0python3.8<br>Python 3.8.10 (default, Jun 22 2022, 20:18:18)<br>[GCC 9.4.0] on linux<br>Type &#8220;help&#8221;, &#8220;copyright&#8221;, &#8220;credits&#8221; or &#8220;license&#8221; for more information.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>import caffe<br>&gt;&gt;&gt; exit()<\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>How to build the Caffe deep learning framework from Berkeley AI Research (BAIR)\/The Berkeley Vision and Learning Center (BVLC) on<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-544","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/iotlab.sdsu.edu\/index.php\/wp-json\/wp\/v2\/pages\/544","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/iotlab.sdsu.edu\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/iotlab.sdsu.edu\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/iotlab.sdsu.edu\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/iotlab.sdsu.edu\/index.php\/wp-json\/wp\/v2\/comments?post=544"}],"version-history":[{"count":7,"href":"https:\/\/iotlab.sdsu.edu\/index.php\/wp-json\/wp\/v2\/pages\/544\/revisions"}],"predecessor-version":[{"id":554,"href":"https:\/\/iotlab.sdsu.edu\/index.php\/wp-json\/wp\/v2\/pages\/544\/revisions\/554"}],"wp:attachment":[{"href":"https:\/\/iotlab.sdsu.edu\/index.php\/wp-json\/wp\/v2\/media?parent=544"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}