Skip to content

Commit

Permalink
Merge pull request #62 from Xiao-Chenguang/win-cuda
Browse files Browse the repository at this point in the history
Notice of CUDA multiprocessing problem on Windows
  • Loading branch information
Xiao-Chenguang authored Nov 25, 2024
2 parents 81d7323 + 84c8675 commit 7eacccb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ Setting `NUM_PROCESS` to 0 will use the serialization mode where each client tra
Setting `NUM_PROCESS > 0` will use the parallel mode where `NUM_PROCESS` workers consume the clients tasks in parallel.
The recommended value for `NUM_PROCESS` is the number of **CPU cores** available.

#### Notice on Windows
Multiprocessing with CUDA is ***not supported on Windows***. If you are using Windows, you should set `NUM_PROCESS` to 0 to use the serialization mode with CUDA. Or you are free to use the parallel mode with CPU only.

## Acknowledgement
- This project includes code from [easydict](https://github.com/makinacorpus/easydict), licensed under the GNU Lesser General Public License (LGPL) version 3.0.
See the [easydict's LICENSE](https://github.com/makinacorpus/easydict?tab=LGPL-3.0-1-ov-file) for details.

0 comments on commit 7eacccb

Please sign in to comment.