Compiling for linux -- release vs debug mode?
Posted: Thu Feb 26, 2015 10:28 pm
Hi. I am working with CC on linux (Centos 7), and I am able to build the Makefile using cmake (2.8.12) and compile (gcc) without a problem. However, CC does not take advantage of my multiple CPUs -- all processes max out a single processor at a time (so there are 31 other CPUs sitting idle). As I understand it, there are "debug" and "release" modes, and I guess that I am running in "debug" mode by default. My problem is that I am seeing where to set the build type or mode. Is this an option in cmake? Or is it a flag invoked at compilation? Or is it a mode at launch? I have looked at the compilation instructions, and I may be staring right at the answer, but I am just not seeing it. Or, perhaps, I'm just misunderstanding something. In any event, thanks in advance for the clarification.
Paco
Paco