small errors debugged
figured out that on my ubuntu setting OMP_NUM_THREAD works, but it's not seen when I run the exectutable from netbeans. Check this out