我要评分
获取效率
正确性
完整性
易理解

(Configuration Scheme 1) Configuring the GPU Working Mode and CPU Binding

If hardware configuration scheme 1 is used, set the GPU working mode to the high-performance mode to enable the GPU to run at the maximum frequency and maintain the optimal GPU performance. This operation needs to be performed each time the system is restarted.

Run the following command:
1
find /sys -name power_dpm_force_performance_level | xargs -I {} sh -c "echo high > '{}'"

To ensure stable CPU resources, bind GPU driver processes to idle cores. The binding procedure is as follows:

  1. Query GPU process IDs.
    1
    ps -ef |grep gfx
    
    Command output:
    1
    2
    root        1703       2  1 Aug31 ?        07:31:36 [gfx_0.0.0]
    root        1739       2  1 Aug31 ?        09:13:08 [gfx_0.0.0]
    
  2. Bind the first GPU process to idle cores.
    1
    taskset -pc 32-33 1703
    
    Command output:
    1
    2
    pid 1703's current affinity list: 0-127
    pid 1703's new affinity list: 32,33
    
  3. Bind the second GPU process to idle cores.
    1
    taskset -pc 64-65 1739
    
    Command output:
    1
    2
    pid 1739's current affinity list: 0-127
    pid 1739's new affinity list: 64,65
    

    If four GPU driver processes are displayed, bind the first two driver processes to cores 32 to 33 and the last two driver processes to cores 64 to 65.