Skip to content
Discussion options

You must be logged in to vote

You have two ways to achieve that:

override the engine config or modify it in code.

A. Override Engine Default Config Externally

#57

  1. Create a file named uipc_engine_config.json with content:
    {
        "gpu": 
        {
            "device": 0 // set by user
        }
    }
    
  2. Set the Environment Variable UIPC_ENGINE_DEFAULT_CONFIG=<CONFIG_FILE>. <CONFIG_FILE> is the full path of uipc_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.

config = Engine.default_config() 

Replies: 1 comment

Comment options

MuGdxy
Feb 1, 2025
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by MuGdxy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant