cMix uses GPU even when useGPU is false

I have useGPU: false in /opt/xxnetwork/node.yaml and I’ve restarted node service since I changed that.

| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  NVIDIA GeForce ...  On   | 00000000:2B:00.0 Off |                  N/A |
|  0%   59C    P2    51W / 250W |    854MiB /  7982MiB |      3%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A   2193831      C   ...etwork/bin/xxnetwork-cmix      851MiB |
+-----------------------------------------------------------------------------+

Is there another place where GPU can be disabled until I fix my driver?

No, there is only one place which sets GPU.

I am not able to reproduce what you are seeing…

$ grep useGPU /opt/xxnetwork/node.yaml 
useGPU: false
[email protected]:~$ nvidia-smi 
Tue Nov  2 17:22:11 2021       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 470.57.02    Driver Version: 470.57.02    CUDA Version: 11.4     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  NVIDIA GeForce ...  Off  | 00000000:07:00.0 Off |                  N/A |
|  0%   55C    P0    19W / 175W |      0MiB /  7979MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+

And the node.log also indicated it is not using CPU …

INFO 2021/11/02 17:21:15 Creating server instance...
INFO 2021/11/02 17:21:15 Initializing the backend...
INFO 2021/11/02 17:21:15 Database backend initialized successfully!
INFO 2021/11/02 17:21:15 Using CPU maths, rather than CUDA
INFO 2021/11/02 17:21:15 Starting server with TLS...

1 Like

Following your confirmation I tried unsuccessfully 5 more times until I discovered /opt/xxnetwork/config/cmix.yaml. Damn!!! :laughing:

Like you, I was working on /opt/xxnetwork/config/node.yaml (as mentioned at the top of my post). There having useGPU: false didn’t help. Maybe your file was symlinked to cmix.yaml.

No, it’s not. You stated the file you were editing was /opt/xxnetwork/node.yaml. That is the location of the BetaNet node.yaml.

If your node is a ProtoNet node, the files and directory structure is different than BetaNet. You figured it out. The file you need to edit is located and named /opt/xxnetwork/config/cmix.yaml

But I don’t know why you would have both if you do.

See File Structure - xx network wiki for the locations of files of ProtoNet nodes.

It’s been a while ago since I moved to Protonet (week 1) so I don’t recall how/why I got node.yaml - I suppose I may have copied a backup of Betanet config there to be able to reference it as I edited the new cmix.yaml and never deleted it.

:biking_man: ok