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

CPU使用スレッド数を設定できるようにする #64

Merged
merged 4 commits into from
Jan 12, 2022

Conversation

Oyaki122
Copy link
Member

@Oyaki122 Oyaki122 commented Jan 10, 2022

内容

#63 の実装です

関連 Issue

ref #63
ref VOICEVOX/voicevox_engine#282

その他

VV_NUM_THREADSに不正な値が入ったときは例外をcatchせず落ちるようにしていますがこの方針でいいでしょうか?
またstd::getenvを使うとVC++だとwarningが出るのでいい方法があれば教えて下さい。よろしくおねがいします

@Oyaki122 Oyaki122 requested review from aoirint and Yosshi999 January 10, 2022 18:36
@Oyaki122 Oyaki122 marked this pull request as ready for review January 10, 2022 18:36
@Hiroshiba
Copy link
Member

issue側に、環境変数よりinitialize関数の引数のが使いやすいかもという旨のコメントをしてみました。
忌憚のない意見を頂けると・・・!
#63 (comment)

README.md Outdated Show resolved Hide resolved
Copy link
Member

@Hiroshiba Hiroshiba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!!
ちょっと勝手になのですが、タイトルを誤解が生まれないよう変更させて頂きます!

core/_core.pxd Outdated Show resolved Hide resolved
@Hiroshiba Hiroshiba changed the title CPU使用スレッド数を環境変数で設定できるようにする CPU使用スレッド数を設定できるようにする Jan 11, 2022
Copy link
Member

@y-chan y-chan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTMです
あとはエンジン側ですね...!

@Hiroshiba Hiroshiba merged commit 5db2fae into VOICEVOX:main Jan 12, 2022
@Oyaki122 Oyaki122 deleted the thread_env branch January 12, 2022 13:23
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

Successfully merging this pull request may close these issues.

4 participants