Created
November 22, 2015 03:13
-
-
Save GOFAI/53a25ff22f31ec144608 to your computer and use it in GitHub Desktop.
Finalized Homebrew Formula for DeepCL
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
class Deepcl < Formula | |
desc "OpenCL library to train deep convolutional neural networks" | |
homepage "https://github.com/hughperkins/DeepCL" | |
url "https://github.com/hughperkins/DeepCL/archive/v8.1.3.tar.gz" | |
sha256 "e0301ba5ae4464ae27a3ec2c777b77faa90b9ee6d1059b200f06a9100d182de1" | |
resource "EasyCL" do | |
url "https://github.com/hughperkins/EasyCL/archive/b9023cdf25c10524ad06227275d3756bbe0c0ed2.tar.gz" | |
sha256 "96c6061385e850081cfce17673353b41dbf470fc6b6f3a15e047b1d6506ba80e" | |
end | |
resource "clBLAS" do | |
url "https://github.com/hughperkins/clBLAS/archive/bdaf1f9ef3d97168fdaff4c3ef588feeae72b171.tar.gz" | |
sha256 "da9995c434c4de205d913a50b58ff7288e391b5dbdb6006951265b838c2cbb13" | |
end | |
resource "clew" do | |
url "https://github.com/hughperkins/clew/archive/1d2752564b6af98d24127cdb2d573d3f9ac98f02.tar.gz" | |
sha256 "3793f8ed9ce5b0fcd4bf8581e1bb1fb76f1e24a70fea17044ae86bdb24593b66" | |
end | |
depends_on "cmake" => :build | |
def install | |
pwd = Pathname.pwd | |
resource("EasyCL").stage pwd/"EasyCL" | |
resource("clBLAS").stage pwd/"clMathLibraries/clBLAS" | |
resource("clew").stage pwd/"EasyCL/thirdparty/clew" | |
mkdir "build" do | |
system "cmake", "-G", "Unix Makefiles", "..", *std_cmake_args | |
system "make", "-j", "4" | |
system "make", "install" | |
end | |
rm_rf lib/"cmake" # don't want this folder symlinked into /usr/local/lib | |
rm Dir[bin/"*.{bat,sh,dat,exe}"] # don't want these symlinked into /usr/local/bin | |
end | |
test do | |
system "#{bin}/deepcl_unittests" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment