Skip to content

Commit

Permalink
fixup! add lite support (in ffi submodule)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Stites committed Sep 30, 2018
1 parent f4eca3a commit 320860c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 16 deletions.
15 changes: 6 additions & 9 deletions cabal.project
@@ -1,12 +1,12 @@
packages:
codegen/*.cabal
ffi/codegen/*.cabal

raw/th/*.cabal
raw/thc/*.cabal
raw/tests/*.cabal
ffi/types/th/*.cabal
ffi/types/thc/*.cabal

types/th/*.cabal
types/thc/*.cabal
ffi/ffi/th/*.cabal
ffi/ffi/thc/*.cabal
ffi/ffi/tests/*.cabal

signatures/types/*cabal
signatures/partial/*cabal
Expand All @@ -16,9 +16,6 @@ packages:

hasktorch/*cabal

-- vendor/type-combinators/*cabal
-- vendor/opto/*cabal

examples/*cabal
zoo/*cabal

Expand Down
15 changes: 8 additions & 7 deletions cabal/project.local-cpu-dev
Expand Up @@ -10,23 +10,24 @@ library-profiling: True
profiling: True

-- hardcode this to your aten repository, just like in the regular CPU build.
extra-lib-dirs: /home/stites/git/hasktorch/vendor/aten/build/lib/
extra-lib-dirs: /home/stites/git/hasktorch/ffi/deps/aten/build/lib

-- This is a hack around the cabal new-* bug where you can't add multi-line `dirs`:
-----------------------------------------------------------------------------------
extra-include-dirs: /home/stites/git/hasktorch/vendor/aten/build/include/
extra-include-dirs: /home/stites/git/hasktorch/vendor/aten/build/include/TH
extra-include-dirs: /home/stites/git/hasktorch/vendor/aten/build/include/THNN
extra-include-dirs: /home/stites/git/hasktorch/vendor/aten/build/include/THC
extra-include-dirs: /home/stites/git/hasktorch/vendor/aten/build/include/THCUNN
extra-include-dirs: /home/stites/git/hasktorch/ffi/deps/aten/build/include
extra-include-dirs: /home/stites/git/hasktorch/ffi/deps/aten/build/include/TH
extra-include-dirs: /home/stites/git/hasktorch/ffi/deps/aten/build/include/THNN
extra-include-dirs: /home/stites/git/hasktorch/ffi/deps/aten/build/include/THC
extra-include-dirs: /home/stites/git/hasktorch/ffi/deps/aten/build/include/THCUNN

program-locations
ghc-location: /opt/ghc/8.4.3/bin/ghc
ghc-pkg-location: /opt/ghc/8.4.3/bin/ghc-pkg

package *
-- add profiling on all (just in case)
ghc-options: -fprof-auto
ghc-options: -fprof-auto -Wall -Widentities -Wincomplete-record-updates -fprint-expanded-synonyms -fprint-explicit-foralls -fprint-explicit-kinds -fprint-potential-instances -H16m

-- set +lite and +debug, which are common flags for hasktorch (maybe others)
flags: -cuda +lite +debug

Expand Down

0 comments on commit 320860c

Please sign in to comment.