Military Operations: Benchmark

Military Operations: Benchmark

FishPond Jan 14, 2019 @ 8:58am
MilOps: Benchmark fails to launch on system with both AMD and NVIDIA GPUs installed
Hi there,

Bit of a unusual setup where I have both an AMD GPU which is my main display and also an NVIDIA GPU but not actively being used in Windows 10. Both cards are detected by MilOps but complains about the second NVIDIA GPU:

trying platform[0]:
name : NVIDIA CUDA
vendor : NVIDIA Corporation
version: OpenCL 1.2 CUDA 10.0.132
-> clGetGLContextInfoKHR() returned an error: -1000
'Invalid GL Sharegroup Reference'
trying device[0][0]:
name : GeForce GTX 1080
vendor : NVIDIA Corporation
version: OpenCL 1.2 CUDA
driver : 417.01
-> device cannot share with current GL context
init_compute() adding shutdown_t because init_opencl_gl_sharing() returned an error message:
A suitable OpenCL device was found on your system but is not active.
Please make sure the dedicated GPU is active when using a laptop or PC with a hybrid GPU setup.

Is there a command line option to tell it to ignore the second GPU as I want to run it on my main AMD GPU?

Thanks,

Kwok
< >
Showing 1-4 of 4 comments
Grecco  [developer] Jan 14, 2019 @ 10:27am 
This is indeed an unusual configuration. It is possible to force MilOps to ignore the NVIDIA GPU but it requires some tinkering with the configuration files.

Follow these instruction only if you know what you're doing :-)

Please make a back-up of any files you modify!

If you go to the "Military Operations\Benchmark" folder, you will find a file called config.yaml
Back-up this file, then open it in a text editor and go to line 622, this line will look something like this:

unsupported gpu device vendors: - intel

If you want the benchmark to ignore cards from nvidia, add an extra line so it looks like this. Make sure you do NOT use tabs, only spaces(!)

unsupported gpu device vendors: - intel - nvidia

If you run the benchmark again, it should ignore the NVIDIA GPU and try the AMD GPU, provided you have the correct OpenCL drivers installed.
FishPond Jan 14, 2019 @ 11:11am 
Hi Grecco,

It still doesn't work. I can see it tried to ignore the NVIDIA GPU but get this now:

trying platform[0]:
name : NVIDIA CUDA
vendor : NVIDIA Corporation
version: OpenCL 1.2 CUDA 10.0.132
-> clGetGLContextInfoKHR() returned an error: -1000
'Invalid GL Sharegroup Reference'
trying device[0][0]:
name : GeForce GTX 1080
vendor : NVIDIA Corporation
version: OpenCL 1.2 CUDA
driver : 417.01
-> device is from an unsupported vendor: nvidia
init_compute() adding shutdown_t because init_opencl_gl_sharing() returned an error message:
No suitable OpenCL device was found on your system.
Please install the latest driver for your video card.

Note I do have the latest AMD drivers installed.

Thanks,

Kwok
Grecco  [developer] Jan 14, 2019 @ 12:49pm 
Hello Kwok,

It looks like the AMD card is not listed as an OpenCL device. Could you send me the log.txt file by e-mailing it to support@militaryoperationshq.com, so I can take a closer look?

Thanks
FishPond Jan 14, 2019 @ 12:54pm 
Email sent marked for your attention. Many thanks Grecco.


Kwok
< >
Showing 1-4 of 4 comments
Per page: 1530 50