I had a strange problem in the following Makefile:
# Mosek path MOSEKPATH = /autofs/fs1.ece/fs1.eecg.najm/b/b1/power_grid_code/mosek
I got most of the content from the examples provided by MOSEK . The Makefile works fine and the results are expected. The problem is that the version of MOSEK that I use has multi-threading (MOSEK 7.1). MOSEK must determine the number of cores on the machine and use all of them. When I use the Makefile as is, MOSEK detects only one core and uses only one thread:
Computer Platform : Linux/64-X86 Cores : 1
However, when I compile without $ (LIBS), MOSEK detects 4 cores:
Computer Platform : Linux/64-X86 Cores : 4
The code I have in lo1.c does not yet use $ (LIBS), but I will need these libraries later in lo1.c. Why do these libraries influence the behavior of MOSEK?
Thanks.
source share