Sha256: abb418df202be145985eead6e31c252126a99abff5b096ed89daaa08727570f8

Contents?: true

Size: 808 Bytes

Versions: 17

Compression:

Stored size: 808 Bytes

Contents

require 'origen/application/runner'
module Origen
  class Application
    class Runner
      # When multiple patterns are requested via the command line with the LSF option,
      # Origen will split it into separate jobs for each pattern. However, if the --flow
      # option is also supplied in that case, then the user will want all the patterns to
      # execute as a single job on the LSF, this hack to Origen makes that happen.
      alias_method :orig_expand_lists_and_directories, :expand_lists_and_directories
      def expand_lists_and_directories(files, options = {})
        if (options[:lsf] && OrigenSim.flow) && !Origen.running_remotely?
          Array(Array(files).join(' '))
        else
          orig_expand_lists_and_directories(files, options)
        end
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
origen_sim-0.20.7 lib/origen_sim/origen/application/runner.rb
origen_sim-0.20.6 lib/origen_sim/origen/application/runner.rb
origen_sim-0.20.5 lib/origen_sim/origen/application/runner.rb
origen_sim-0.20.4 lib/origen_sim/origen/application/runner.rb
origen_sim-0.20.3 lib/origen_sim/origen/application/runner.rb
origen_sim-0.20.2 lib/origen_sim/origen/application/runner.rb
origen_sim-0.20.1 lib/origen_sim/origen/application/runner.rb
origen_sim-0.20.0 lib/origen_sim/origen/application/runner.rb
origen_sim-0.16.1 lib/origen_sim/origen/application/runner.rb
origen_sim-0.16.0 lib/origen_sim/origen/application/runner.rb
origen_sim-0.15.0 lib/origen_sim/origen/application/runner.rb
origen_sim-0.14.0 lib/origen_sim/origen/application/runner.rb
origen_sim-0.13.0 lib/origen_sim/origen/application/runner.rb
origen_sim-0.12.0 lib/origen_sim/origen/application/runner.rb
origen_sim-0.11.1 lib/origen_sim/origen/application/runner.rb
origen_sim-0.11.0 lib/origen_sim/origen/application/runner.rb
origen_sim-0.10.0 lib/origen_sim/origen/application/runner.rb