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

github.com/clementfarabet/lua---nnx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClement Farabet <clement.farabet@gmail.com>2012-11-23 08:20:08 +0400
committerClement Farabet <clement.farabet@gmail.com>2012-11-23 08:20:08 +0400
commit6e951a35848cbc4415a7bbcc760ffbc154740328 (patch)
treecf2b50617b852198237d931c7e733449b5ef87b2
parentb33b61e0607e6450d09fe987c7692f60f54685a4 (diff)
Rockspec0.1-0
-rw-r--r--CMakeLists.txt5
-rw-r--r--nnx-0.1-0.rockspec28
2 files changed, 33 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 14106a7..6dcbe1d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,6 +1,11 @@
CMAKE_MINIMUM_REQUIRED(VERSION 2.6 FATAL_ERROR)
CMAKE_POLICY(VERSION 2.6)
+IF(LUAROCKS_PREFIX)
+ MESSAGE(STATUS "Installing Torch through Luarocks")
+ STRING(REGEX REPLACE "(.*)lib/luarocks/rocks.*" "\\1" CMAKE_INSTALL_PREFIX "${LUAROCKS_PREFIX}")
+ MESSAGE(STATUS "Prefix inferred from Luarocks: ${CMAKE_INSTALL_PREFIX}")
+ENDIF()
FIND_PACKAGE(Torch REQUIRED)
FIND_PACKAGE(OpenMP)
diff --git a/nnx-0.1-0.rockspec b/nnx-0.1-0.rockspec
new file mode 100644
index 0000000..15ec417
--- /dev/null
+++ b/nnx-0.1-0.rockspec
@@ -0,0 +1,28 @@
+package = "nnx"
+version = "0.1-0"
+
+source = {
+ url = "git://github.com/clementfarabet/lua---nnx",
+ tag = "0.1-0"
+}
+
+description = {
+ summary = "A completely unstable and experimental package that extends Torch's builtin nn library",
+ detailed = [[
+This is an experimental package that extends nn. You've be warned!
+ ]],
+ homepage = "https://github.com/clementfarabet/lua---nnx",
+ license = "BSD"
+}
+
+dependencies = {
+ "torch >= 7.0",
+ "xlua >= 1.0"
+}
+
+build = {
+ type = "cmake",
+ variables = {
+ LUAROCKS_PREFIX = "$(PREFIX)"
+ }
+}