Skip to content

Commit

Permalink
update submit.yml.erb (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruokolt authored Jun 13, 2024
1 parent 484a71e commit dde6c39
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions bin/deploy-data/ood/submit.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,12 @@ batch_connect:
%s

script:
# Requesting 2Gb for each file
native: ["--mem", <%= (Dir.glob("#{audio_path}/*").select { |f| File.file?(f) }.count * 2).to_s + "G" %>]
# Request 2Gb per file
<% if File.directory?(audio_path) %>
native: ["--mem", <%= (Dir.glob("#{audio_path}/*").select { |f| File.file?(f) }.count * 2).to_s + "G" %>]
<% elsif File.file?(audio_path) %>
native: ["--mem", "2G"]
<% else %>
raise "Invalid audio_path: #{audio_path} is neither a file nor a directory."
<% end %>

0 comments on commit dde6c39

Please sign in to comment.