-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] Support Windows x86 & x64 #2
Comments
Thank you very much for your time, Xemorph. First of all, my first idea with gpufetch was to make it work with different GPUs (NVIDIA, AMD, iGPU, ARM, etc) and then start working with the OS compatibility. That said, I was also interested in making gpufetch work in Windows ASAP since I was interested in running the program on some PCs with windows. What changes did you make to the source code/Makefile to make it build with MSVC? I will look at the changes and I'll make a decision, but I will need time because I have never worked with MSVC so far. PS: Nice GPU btw! |
Hi, I didn't change too much. The huge if-else code blocks in I'll try to list the changes here later, maybe I'll have a working Makefile together by then. I still have a brand new AMD graphics card, to be exact: PowerColor Liquid Devil 6800XT, lying around 🤣 I could support you with the AMD port. |
I did a bit of web searching and looked at how NMake files are written. I can only recommend one: Keep your hands off NMake. As an example, I've included the contents of the NMake file. You can use this NMake file to compile
|
I have been working on this, and the first thing I wanted to try, before looking at the work you did, is to check why MinGW does not work with CUDA. So I tried to compile gpufetch with MinGW, and it worked. I don't know why you assumed that it did not work, but it does. At least, with my changes, it compiles and runs perfectly. I had a problem when linking against I'm not going to upload the Makefile yet since it's a bit hacky and I want to remove the NVML dependency first. But the thing is, MinGW works with CUDA. So I don't think that I will make any changes to the project to make it compile with MSVC since it works with MinGW (although changes have to be made). |
I apologize for my stubborn statement about MinGW & CUDA. The tool NVCC (Nvidia CUDA Compiler) works under Windows only with CL (MSVC), Nvidia has already said often enough that they do not plan to support MinGW. I didn't even try to compile the project with MinGW, instead I went directly to MSVC. Proper shader programming / complex 3D models should not work with MinGW (according to Nvidia), because they need be compiled with NVCC. The goal should really be to remove unnecessary dependencies & support AMD GPUs. |
Hello,
@Dr-Noob , you might know me already. I was so kind and built the source code under Windows and provide here the 64Bit and 32Bit variant.
Of course I would like to share my experiences with you. CUDA & NVML can only be compiled under Windows with Microsoft's BuildTools (aka MSVC); MinGW doesn't seem to support Nvidia's libraries … Therefore I have rebuilt the source code a bit and compiled it so far and tested it myself (see photo).
For further questions I am at your disposal.
HowTo use
gpufetch
under Windows64 bit:
Unpack the 64 bit archive and execute gpufetch. Be aware that the DLL is required!
32 bit:
Currently, Nvidia's libraries do not support 32 bit Windows architecture.
A big thank you to @Dr-Noob for developing such great tools & improving them more and more
gpufetch_x64.zip
The text was updated successfully, but these errors were encountered: