Skip to content

How to pass in multiple inputs at once? #3222

Answered by KerfuffleV2
novice03 asked this question in Q&A
Discussion options

You must be logged in to vote

@novice03

No, I would like to get a summary for each file separately.

On Unix-type OSes this is really easy. You wouldn't want to do it quite this simply, but just as an example:

for X in *.txt; do ./main -m whatever -f "$X" > "${X}.out" 2>"${X}.err" ; done

That'll work with sh compatible shells like bash, zsh, etc and just runs main on every text file in the current directory, saving the output from stdout to "filename.txt.out" and output from stderr to "filename.txt.err".

However, I can try to arrange some compute - either CPUs or GPUs.

GPU is generally going to be a lot faster than CPU. Also even GPUs without a lot of memory can still speed up prompt processing a lot. Assuming you…

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
6 replies
@novice03
Comment options

@gileneusz
Comment options

@KerfuffleV2
Comment options

Answer selected by novice03
@gileneusz
Comment options

@KerfuffleV2
Comment options

@gileneusz
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants