Sha256: c34730e574e0ef4baad01b03c8f64d300cdaa024654c61722cf3a0faacda59fd
Contents?: true
Size: 454 Bytes
Versions: 1
Compression:
Stored size: 454 Bytes
Contents
require "mkmf-rice" abort "Missing stdc++" unless have_library("stdc++") $CXXFLAGS << " -std=c++11" # silence ruby/intern.h warning $CXXFLAGS << " -Wno-deprecated-register" inc, lib = dir_config("torch") inc ||= "/usr/local/include" lib ||= "/usr/local/lib" $INCFLAGS << " -I#{inc}" $INCFLAGS << " -I#{inc}/torch/csrc/api/include" $LDFLAGS << " -Wl,-rpath,#{lib}" $LDFLAGS << " -L#{lib}" $LDFLAGS << " -ltorch -lc10" create_makefile("torch/ext")
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
torch-rb-0.1.0 | ext/torch/extconf.rb |