Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support OMP_NUM_THREADS for CPU limit #136

Open
alexweisberg opened this issue Feb 6, 2023 · 0 comments
Open

support OMP_NUM_THREADS for CPU limit #136

alexweisberg opened this issue Feb 6, 2023 · 0 comments

Comments

@alexweisberg
Copy link

Hi, I am looking into an issue with a separate program that uses tape (zhangyumeng1sjtu/T4SEfinder#2). I am running this program on a computing cluster that does not have a GPU, and so I need to limit the number of threads spawned by each program to a specific number. The program I am using is called T4SEfinder, which calls the transformer function of tape as follows:
tape-embed transformer {fasta} {embed_path} {pretrained_model} --tokenizer iupac --batch_size 1 --seed {random_seed} --log_level WARNING
and that is spawning as many processes as the machine has CPUs.

Would it be possible for tape to respect the OMP_NUM_THREADS environment variable when running? Or alternatively adding a number of threads argument? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant