Hey,
  I found a solution for strings here 
<https://groups.google.com/forum/#!topic/julia-users/_k-FRy3LhLI>, but I 
really need it to be a number. If I do

ENV["MIC_OMP_NUM_THREADS"]=240

  Then call a C function, I get

printf("%s\n",getenv("OMP_NUM_THREADS"));

  as 240 whereas

printf("%d\n",getenv("OMP_NUM_THREADS"));

  is garbage. Anyone know how to set it as an integer? Thanks. (P.S. Yes, 
this is Julia interfacing with a Xeon Phi. More on this soon!)

Reply via email to