-
|
How can I manually specify the |
Beta Was this translation helpful? Give feedback.
Answered by
MuGdxy
Feb 1, 2025
Replies: 1 comment
-
|
You have two ways to achieve that: override the engine config or modify it in code. A. Override Engine Default Config Externally
This approach doesn't require any code changing. You only need to create a config file for a computer. B. Specify in CodeApproach A overrides the uipc engine's default config. In contrast, Approach B modifies the config JSON in code. config = Engine.default_config() // Approach A happens here
config['gpu']['device'] = 0 // Approach B happens here
engine = Engine('cuda', config) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
MuGdxy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You have two ways to achieve that:
override the engine config or modify it in code.
A. Override Engine Default Config Externally
#57
uipc_engine_config.jsonwith content:UIPC_ENGINE_DEFAULT_CONFIG=<CONFIG_FILE>.<CONFIG_FILE>is the full path ofuipc_engine_config.json, e.g./home/my_name/uipc_engine_config.json.This approach doesn't require any code changing. You only need to create a config file for a computer.
B. Specify in Code
Approach A overrides the uipc engine's default config. In contrast, Approach B modifies the config JSON in code.