Commit 564d6456 authored by Alfredo Di Napoli's avatar Alfredo Di Napoli

Merge branch 'clusternode-eq-instance' into 'master'

Align side branch with main master

See merge request !2
parents 13131f51 2d7aceb3
cabal-version: 1.12 cabal-version: 1.12
-- This file has been generated from package.yaml by hpack version 0.34.4. -- This file has been generated from package.yaml by hpack version 0.34.7.
-- --
-- see: https://github.com/sol/hpack -- see: https://github.com/sol/hpack
...@@ -71,43 +71,6 @@ library ...@@ -71,43 +71,6 @@ library
, vector , vector
default-language: Haskell2010 default-language: Haskell2010
executable gargantext-graph-exe
main-is: Main.hs
other-modules:
Paths_gargantext_graph
hs-source-dirs:
app
default-extensions:
DataKinds
FlexibleInstances
OverloadedStrings
ghc-options: -O2 -threaded -rtsopts -with-rtsopts=-N -fprof-auto -Wmissing-signatures -Wcompat
build-depends:
accelerate
, accelerate-arithmetic
, accelerate-utility
, base >=4.7 && <5
, bytestring
, cassava
, cereal
, containers
, criterion
, eigen
, fgl
, gargantext-graph
, haskell-igraph >=0.6.0
, hmatrix
, lens
, pretty-simple
, protolude
, reflection
, singletons
, sparse-linear
, string-conversions
, text
, vector
default-language: Haskell2010
test-suite gargantext-graph-test test-suite gargantext-graph-test
type: exitcode-stdio-1.0 type: exitcode-stdio-1.0
main-is: Main.hs main-is: Main.hs
......
# this version of nixpkgs contains liblapack at ?
# this version of nixpkgs contains gsl at ?
import (builtins.fetchGit {
# Descriptive name to make the store path easier to identify
name = "nixos-20.09";
url = "https://github.com/nixos/nixpkgs/";
# `git ls-remote https://github.com/nixos/nixpkgs-channels nixos-20.09`
ref = "refs/heads/nixos-20.09";
rev = "69f3a9705014ce75b0489404210995fb6f29836e";
})
import (builtins.fetchGit {
name = "nixos-21.05";
url = "https://github.com/nixos/nixpkgs";
ref = "refs/heads/nixos-21.05";
rev = "7e9b0dff974c89e070da1ad85713ff3c20b0ca97";
})
import (builtins.fetchGit {
name = "nixos-22.05";
url = "https://github.com/nixos/nixpkgs";
ref = "refs/heads/nixos-22.05";
rev = "7e9b0dff974c89e070da1ad85713ff3c20b0ca97";
})
{ pkgs ? import ./pinned-22.05.nix {} }:
rec {
inherit pkgs;
ghc = pkgs.haskell.compiler.ghc8104;
hsBuildInputs = [
ghc
pkgs.cabal-install
];
nonhsBuildInputs = with pkgs; [
bzip2
czmq
docker-compose
git
gmp
gsl
#haskell-language-server
hlint
igraph
libffi
liblapack
lzma
pcre
pkgconfig
postgresql
xz
zlib
blas
gfortran7
# gfortran7.cc.lib
expat
icu
graphviz
llvm_9
];
libPaths = pkgs.lib.makeLibraryPath nonhsBuildInputs;
shellHook = ''
export LD_LIBRARY_PATH="${pkgs.gfortran7.cc.lib}:${libPaths}:$LD_LIBRARY_PATH"
export LIBRARY_PATH="${pkgs.gfortran7.cc.lib}:${libPaths}"
'';
shell = pkgs.mkShell {
name = "gargantext-shell";
buildInputs = hsBuildInputs ++ nonhsBuildInputs;
inherit shellHook;
};
}
(import ./pkgs.nix {}).shell
let ourpkgs = import ./pkgs.nix {};
pkgs = ourpkgs.pkgs;
in
pkgs.haskell.lib.buildStackProject rec {
name = "gargantext";
ghc = ourpkgs.ghc;
buildInputs = ourpkgs.nonhsBuildInputs;
shellHook = ourpkgs.shellHook;
}
...@@ -50,21 +50,21 @@ default-extensions: ...@@ -50,21 +50,21 @@ default-extensions:
library: library:
source-dirs: src source-dirs: src
executables: # executables:
gargantext-graph-exe: # gargantext-graph-exe:
main: Main.hs # main: Main.hs
source-dirs: app # source-dirs: app
ghc-options: # ghc-options:
- -O2 # - -O2
- -threaded # - -threaded
- -rtsopts # - -rtsopts
- -with-rtsopts=-N # - -with-rtsopts=-N
- -fprof-auto # - -fprof-auto
- -Wmissing-signatures # - -Wmissing-signatures
- -Wcompat # - -Wcompat
dependencies: # dependencies:
- gargantext-graph # - gargantext-graph
- criterion # - criterion
tests: tests:
gargantext-graph-test: gargantext-graph-test:
......
...@@ -134,7 +134,7 @@ condOrDefault ...@@ -134,7 +134,7 @@ condOrDefault
condOrDefault theCond def x = permute const zeros filterInd x condOrDefault theCond def x = permute const zeros filterInd x
where where
zeros = fill (shape x) (def) zeros = fill (shape x) (def)
filterInd ix = (cond (theCond ix)) (Just_ ix) Nothing_ filterInd ix = cond (theCond ix) (Just_ ix) Nothing_
----------------------------------------------------------------------- -----------------------------------------------------------------------
_runExp :: Elt e => Exp e -> e _runExp :: Elt e => Exp e -> e
...@@ -308,7 +308,7 @@ sumRowMin n m = {-trace (P.show $ run m') $-} m' ...@@ -308,7 +308,7 @@ sumRowMin n m = {-trace (P.show $ run m') $-} m'
$ P.map (\z -> sumRowMin1 n (constant z) m) [0..n-1] $ P.map (\z -> sumRowMin1 n (constant z) m) [0..n-1]
sumRowMin1 :: (Num a, Ord a) => Dim -> Exp Int -> Acc (Matrix a) -> Acc (Vector a) sumRowMin1 :: (Num a, Ord a) => Dim -> Exp Int -> Acc (Matrix a) -> Acc (Vector a)
sumRowMin1 n x m = {- trace (P.show (run m,run $ transpose m)) $ -} m'' sumRowMin1 n x m = m''
where where
m'' = sum $ zipWith min (transpose m) m m'' = sum $ zipWith min (transpose m) m
_m' = zipWith (*) (zipWith (*) (nullOf n (MatCol x)) $ nullOfWithDiag n (MatRow x)) m _m' = zipWith (*) (zipWith (*) (nullOf n (MatCol x)) $ nullOfWithDiag n (MatRow x)) m
......
This diff is collapsed.
...@@ -40,4 +40,5 @@ data ClusterNode = ClusterNode ...@@ -40,4 +40,5 @@ data ClusterNode = ClusterNode
, cl_community_id :: Int , cl_community_id :: Int
} deriving Show } deriving Show
instance Eq ClusterNode where
ClusterNode n1 c1 == ClusterNode n2 c2 = (n1 == n2) && (c1 == c2)
# This file was automatically generated by 'stack init'
#
# Some commonly used options have been documented as comments in this file.
# For advanced use and comprehensive documentation of the format, please see:
# https://docs.haskellstack.org/en/stable/yaml_configuration/
# Resolver to choose a 'specific' stackage snapshot or a compiler version.
# A snapshot resolver dictates the compiler version and the set of packages
# to be used for project dependencies. For example:
#
# resolver: lts-3.5
# resolver: nightly-2015-09-21
# resolver: ghc-7.10.2
#
# The location of a snapshot can be provided as a file or url. Stack assumes
# a snapshot provided as a file might change, whereas a url resource does not.
#
# resolver: ./custom-snapshot.yaml
# resolver: https://example.com/snapshots/2018-01-01.yaml
resolver: resolver:
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/17/10.yaml url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/18/28.yaml
allow-newer: true flags:
# User packages to be built. accelerate:
# Various formats can be used as shown in the example below. debug: false
# extra-package-dbs: []
# packages: skip-ghc-check: true
# - some-directory
# - https://example.com/foo/bar/baz-0.0.2.tar.gz
# subdirs:
# - auto-update
# - wai
packages: packages:
- . - .
#- '../eigen/'
# Dependency packages to be pulled from upstream that are not in the resolver. docker:
# These entries can reference officially published versions as well as enable: false
# forks / in-progress versions pinned to a git hash. For example: #enable: true
# repo: 'cgenie/stack-build:lts-18.18-garg'
#repo: 'cgenie/nixos-stack:latest'
skip-ghc-check: true
nix:
enable: false
add-gc-roots: true
shell-file: nix/stack-shell.nix
allow-newer: true
extra-deps: extra-deps:
- git: https://github.com/kaizhang/haskell-igraph.git - git: https://github.com/alpmestan/haskell-igraph.git
commit: d790e030e6e08b04dc0971221b6054d6700d82e7 commit: 9f55eb36639c8e0965c8bc539a57738869f33e9a
- git: https://gitlab.iscpif.fr/anoe/accelerate.git - git: https://github.com/alpmestan/accelerate.git
commit: f5c0e0071ec7b6532f9a9cd3eb33d14f340fbcc9 commit: 640b5af87cea94b61c7737d878e6f7f2fca5c015
- git: https://gitlab.iscpif.fr/anoe/accelerate-utility.git - git: https://gitlab.iscpif.fr/amestanogullari/accelerate-utility.git
commit: 83ada76e78ac10d9559af8ed6bd4064ec81308e4 commit: a3875fe652d3bb5acb522674c22c6c814c1b4ad0
- git: https://github.com/alpmestan/sparse-linear.git - git: https://github.com/alpmestan/sparse-linear.git
commit: bc6ca8058077b0b5702ea4b88bd4189cfcad267a commit: bc6ca8058077b0b5702ea4b88bd4189cfcad267a
subdirs: subdirs:
...@@ -52,7 +38,8 @@ extra-deps: ...@@ -52,7 +38,8 @@ extra-deps:
commit: b9fca8beee0f23c17a6b2001ec834d071709e6e7 commit: b9fca8beee0f23c17a6b2001ec834d071709e6e7
subdirs: subdirs:
- packages/base - packages/base
- accelerate-arithmetic-1.0.0.1@sha256:555639232aa5cad411e89247b27871d09352b987a754230a288c690b6de6d888,2096 - git: https://github.com/alpmestan/accelerate-arithmetic.git
commit: a110807651036ca2228a76507ee35bbf7aedf87a
- eigen-3.3.7.0@sha256:7c24a86426b238e02ba0ac2179cc44997518b443a13828ed7a791fe49a6dffa5,82060 - eigen-3.3.7.0@sha256:7c24a86426b238e02ba0ac2179cc44997518b443a13828ed7a791fe49a6dffa5,82060
- vector-0.12.3.0 - vector-0.12.3.0
...@@ -61,26 +48,7 @@ ghc-options: ...@@ -61,26 +48,7 @@ ghc-options:
sparse-linear: -O2 -fsimpl-tick-factor=10000 -fdicts-cheap -fdicts-strict -flate-dmd-anal -fno-state-hack sparse-linear: -O2 -fsimpl-tick-factor=10000 -fdicts-cheap -fdicts-strict -flate-dmd-anal -fno-state-hack
gargantext-graph: -O2 -fsimpl-tick-factor=10000 -fdicts-cheap -fdicts-strict -flate-dmd-anal -fno-state-hack gargantext-graph: -O2 -fsimpl-tick-factor=10000 -fdicts-cheap -fdicts-strict -flate-dmd-anal -fno-state-hack
ghc-options:
# Override default flag values for local packages and extra-deps hmatrix: -O2 -fsimpl-tick-factor=10000 -fdicts-cheap -fdicts-strict -flate-dmd-anal -fno-state-hack
# flags: {} sparse-linear: -O2 -fsimpl-tick-factor=10000 -fdicts-cheap -fdicts-strict -flate-dmd-anal -fno-state-hack
gargantext-graph: -O2 -fsimpl-tick-factor=10000 -fdicts-cheap -fdicts-strict -flate-dmd-anal -fno-state-hack
# Extra package databases containing global packages
# extra-package-dbs: []
# Control whether we use the GHC we find on the path
# system-ghc: true
#
# Require a specific version of stack, using version ranges
# require-stack-version: -any # Default
# require-stack-version: ">=2.5"
#
# Override the architecture used by stack, especially useful on Windows
# arch: i386
# arch: x86_64
# Extra directories used by stack for building
# extra-include-dirs: [/path/to/dir]
# extra-lib-dirs: [/path/to/dir]
#
# Allow a newer minor version of GHC than the snapshot specifies
# compiler-check: newer-minor
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment