rbbt-util 5.25.39 → 5.25.40

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0f56f0578a67dbc452f235f6ccc30c8c9c97dbfb
4
- data.tar.gz: 0c333ea486edd8afead278153fec7a4c81e2a12e
3
+ metadata.gz: 9433fb814b44267945865834fea4990b38cbeb96
4
+ data.tar.gz: 1f1a04136934f52f3a3ff4d7826b2e34a7cddff1
5
5
  SHA512:
6
- metadata.gz: 4839d7df1d9ac6bdaadaad1dca2b4f57d3aefedb55323f1edccb8de3d9fedc49c44eecd26db5ea8d2469c8fe073b34bb513f37a62ad7268ac2dfcd536a2524a5
7
- data.tar.gz: 3bde4b44aeceac13e2129f5b236e72fe0c411f7f0b1f0d8cf339584030a64e64aa07b1d360a4f1707d5aa125dbce65d96ab6eb28d050397a00112dd6eb08042f
6
+ metadata.gz: a5d6572ac860c7028a6abd78fe0bb8cc9e3ca563eccda0e11d404a665a15e29b5a7e5aba43193ed78325e7c92f16dcbeabf876eea28e33c39859737313e76b07
7
+ data.tar.gz: 2db09b238b2d769ee4b686ca13bc3d9c636af2c3a08512e2adac5801887ec75553a27c4bb038eed17d24fe9117911b337f6c51f17f87ed168de1523b43635108
data/lib/rbbt/hpc.rb CHANGED
@@ -98,6 +98,9 @@ module Marenostrum
98
98
  # Prepare env
99
99
  [[ -f ~/config/load.sh ]] && source ~/config/load.sh
100
100
  module load java
101
+
102
+ # Calculate max available memory
103
+ let "MAX_MEMORY=$SLURM_MEM_PER_CPU * $SLURM_CPUS_ON_NODE"
101
104
  EOF
102
105
 
103
106
  if singularity
@@ -165,16 +168,16 @@ EOF
165
168
  group = File.basename(File.dirname(ENV['HOME']))
166
169
  scratch_group_dir = File.join('/gpfs/scratch/', group)
167
170
  projects_group_dir = File.join('/gpfs/projects/', group)
168
- exec_cmd = %(singularity exec -e -C -H "$CONTAINER_DIR" -B /apps/ -B "$SINGULARITY_RUBY_INLINE":"$CONTAINER_DIR/.ruby_inline":rw -B ~/git:"$CONTAINER_DIR/git":ro -B #{scratch_group_dir}:"$CONTAINER_DIR/scratch":ro -B ~/.rbbt/software/opt/:"/opt/":ro -B ~/.rbbt:"$CONTAINER_DIR/home/":ro -B #{projects_group_dir}:"$CONTAINER_DIR/projects":ro "$SINGULARITY_IMG" env TMPDIR="$CONTAINER_DIR/.rbbt/tmp" rbbt)
171
+ exec_cmd = %(singularity exec -e -C -H "$CONTAINER_DIR" -B /apps/ -B "$SINGULARITY_RUBY_INLINE":"$CONTAINER_DIR/.ruby_inline":rw -B ~/git:"$CONTAINER_DIR/git":ro -B #{scratch_group_dir}:"$CONTAINER_DIR/scratch":ro -B ~/.rbbt/software/opt/:"/opt/":ro -B ~/.rbbt:"$CONTAINER_DIR/home/":ro -B #{projects_group_dir}:"$CONTAINER_DIR/projects":ro "$SINGULARITY_IMG" env TMPDIR="$CONTAINER_DIR/.rbbt/tmp" env _JAVA_OPTION="-Xms1g -Xmx${MAX_MEMORY}m" rbbt)
169
172
  else
170
- exec_cmd = %(singularity exec -e -B /apps/ -B "$SINGULARITY_RUBY_INLINE":"$HOME/.ruby_inline":rw "$SINGULARITY_IMG" rbbt)
173
+ exec_cmd = %(singularity exec -e -B /apps/ -B "$SINGULARITY_RUBY_INLINE":"$HOME/.ruby_inline":rw "$SINGULARITY_IMG" env _JAVA_OPTION="-Xms1g -Xmx${MAX_MEMORY}m" rbbt)
171
174
  end
172
175
 
173
176
  if development
174
177
  exec_cmd += ' --dev=git'
175
178
  end
176
179
  else
177
- exec_cmd = %(~/git/rbbt-util/bin/rbbt --dev=~/git/)
180
+ exec_cmd = %(env _JAVA_OPTION="-Xms1g -Xmx${MAX_MEMORY}m" ~/git/rbbt-util/bin/rbbt --dev=~/git/)
178
181
  end
179
182
 
180
183
 
@@ -16,6 +16,7 @@ Subsets entries from a TSV file from a given list. Works with Tokyocabinet HDB a
16
16
  -tcb--tokyocabinet_bd File is a TC BDB
17
17
  -hh--header_hash* Change the character used to mark the header line (defaults to #)
18
18
  -s--subset* Subset of keys (Comma-separated or file)
19
+ -m--merge Merge TSV rows
19
20
  -h--help Help
20
21
  EOF
21
22
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbbt-util
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.25.39
4
+ version: 5.25.40
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Vazquez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-01 00:00:00.000000000 Z
11
+ date: 2019-04-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake