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

[Feature Request] Allow user to select which GPU to use #7

Closed
rlguy opened this issue Feb 14, 2018 · 7 comments
Closed

[Feature Request] Allow user to select which GPU to use #7

rlguy opened this issue Feb 14, 2018 · 7 comments
Labels

Comments

@rlguy
Copy link
Owner

rlguy commented Feb 14, 2018

Problem

The simulator doesn't have a 'smart' method of selecting which GPU to use, it just picks the first GPU from a list. This can cause the simulator to choose the less powerful GPU, or even an integrated graphics chip which will slow down simulation baking.

Solution

  1. Add an interface element to the Addon Preferences menu that allows the user to select which GPU they want the simulator to use.
  2. Use a smarter method to try and detect the more powerful GPU and use that as the default selection

Workaround
Note: This workaround only applies to the FLIP Fluids Beta addon, not the Test Suite addon

If the addon is selecting the wrong GPU, try disabling GPU features until this issue is fixed. Simulations may run faster using your CPU.

disable_gpu_features

@RevDr
Copy link

RevDr commented Feb 14, 2018

Just running my first test - sure this is a daft question - but where are the GPU options?

@rlguy
Copy link
Owner Author

rlguy commented Feb 14, 2018

Not a bad question! The GPU options are only available in the full beta addon, not the test suite addon. I have updated the workaround with a note about this.

@RevDr
Copy link

RevDr commented Feb 14, 2018

Should my GPU be doing anything on the test version? Currently running a 300 resolution test and noticed although my CPU is working my GPU utilization is running at 1% or 2% most of the time (CPUID HW Monitor)

@rlguy
Copy link
Owner Author

rlguy commented Feb 14, 2018

Low GPU usage is normal.

The simulator offloads some calculations to the GPU to boost performance. Many FLIP calculations aren't perfectly suited for GPU processing, so the full power of the GPU cannot be 100% utilized. Often the GPU usage is under 5%, but with this low percentage, the calculations can still run much faster on the GPU than CPU. For example, mesh data is generated on the GPU and in tests, when running on CPU, these calculations could be two to five times slower.

The performance boost will depend on your hardware. In the full version, you can try disabling the GPU features to test if the calculations run faster on your CPU.

@RevDr
Copy link

RevDr commented Feb 14, 2018

OK - thanks - makes sense.

@rlguy
Copy link
Owner Author

rlguy commented Feb 21, 2018

Solution 2: Use a smarter method to try and detect the more powerful GPU and use that as the default selection

The next version (Test Suite v0.1.2t and Beta v0.1.2b) will include this improvement.

Functionality to specify which GPU to use is still in progress.

@rlguy
Copy link
Owner Author

rlguy commented Feb 28, 2018

An option has been added to the addon preferences menu to select which GPU to use as a compute device. If no device is selected, the addon will automatically try to select the most 'powerful' device. Tip: remember to save your user settings so that Blender remembers your GPU selection preference.

This feature will be included in the next beta version (0.1.3b).

gpu_selection

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

No branches or pull requests

2 participants