COPT-Public / cuPDLP-C

Code for solving LP on GPU using first-order methods
MIT License
148 stars 34 forks source link

Tweak macros #26

Open hannes-uppman opened 6 months ago

hannes-uppman commented 6 months ago

This deals with an issues also covered in #17, but I feel the changes here are simpler and more in line with the rest of the code.

Tested with MSVC 19.39.33523 for x64, windows 10. For the change to typeof, see https://learn.microsoft.com/en-us/cpp/c-language/typeof-c?view=msvc-170 (the project is configured to use C99 through Cmake). From what I can tell, it should also work with GCC (https://gcc.gnu.org/onlinedocs/gcc/Typeof.html) and Clang (https://clang.llvm.org/docs/UsersManual.html), but I have not tested this.