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

Ubuntuでマルチスレッドで実行 #19

Open
olive-andre opened this issue Feb 4, 2025 · 1 comment
Open

Ubuntuでマルチスレッドで実行 #19

olive-andre opened this issue Feb 4, 2025 · 1 comment
Labels
question Further information is requested

Comments

@olive-andre
Copy link

良いプログラムを作ってくれてありがとうございます。
Ubuntuでマルチスレッドで実行をするのですが、シングルスレッドに戻ります。
もしかしたら、Ubuntuではマルチスレッドサポートができないのでしょうか?
マルチスレッドを使うためにもしかしたら、特別な方法を使う必要があるのか知りたいです。

@olive-andre olive-andre added the question Further information is requested label Feb 4, 2025
@tsukumijima
Copy link
Contributor

@olive-andre
少なくともバックエンドで利用されている ONNX Runtime は(マルチスレッドかは分かりませんが)少なくとも複数の CPU コアを用いて推論できるように実装されているはずです。そのため、本来特に意識する必要はありません。
実際にどの程度 CPU リソースを用いるかは、ONNX Runtime に渡すオプションによって制御されています。

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

No branches or pull requests

2 participants