Can't install GPU Stress Test tool on Windows from Nvidia

I have a problem compiling Nvidia’s GPU Stress Test tool on Windows. GitHub - NVIDIA/GPUStressTest: GPU Stress Test is a tool to stress the compute engine of NVIDIA Tesla GPU’s by running a BLAS matrix multiply using different data types. It can be compiled and run on both Linux and Windows.

I was able to compile on Linux (Ubuntu 22.04). I’m trying to make it work on Windows Server 2019. They said in the description that it’s possible to compile both in Linux and Windows, but I have a feeling that the CMake config file is specifically for Linux. I tried to change and make it work, but I had too many warnings and errors. I’m not a CMake expert and it’s hard to rewrite config from one to another OS. My question is what do I need to do to make it compile on Windows? Has anyone had the same problem?

Thank you!

Hi Jack,

The CMakeLists.txt is just used for Linux in this implementation.

To build on Windows it is easiest to first get the Nsight VStudio extensions and create a new CUDA 12 application with all defaults. This will get the build environment setup. Then add POSIX support to the repository using vcpkg
The POSIX support needed is included with:
$ vcpkg install pthreads:x64-windows
$ vcpkg integrate install

Then you can build the wgst.exe binary with VS. It is admittedly not a full or proper integration but produces the desired binary :)

1 Like

Thank you so much for your response!

I tried your way, but I still struggle with some steps. If I understand correctly, I will create a new CUDA 12 project and try migrating your project into this one. Can you please provide the steps on how I can connect your project to the new one so I can compile it? I’m not working with C/C++ so I struggle to make this work right. Thank you!

Best regards,
Jack

After spending some time here where I stuck with that build.

I did get the “util” folder from the original project and put in the new one CUDA default project folder. After that, I copied everything from main.cu and refer to the util folder. vcpkg was installed and referred to the pthreads:x64-windows. I don’t have any errors or warnings before the build in main.cu.
Now I have 9 of the same errors “name followed by :: must be a class or namespace name” on line 840 (other 8 on different lines like 844, 848, 853, 946, 947, 948, 950).
And one error with code MSB3721. I think this one refers to the fact that the build failed to run, but I will provide the whole error just in case later.

Thank you for your help!

Best regards,
Jack

@dfiskxk31i I’m sorry for bothering you. I hope you can provide more information or another solution for compiling the GPU Stress Test on Windows Server 2019 when you have time.
Thank you!

Best regards,
Jack