Building models with SAS Enterprise Miner, SAS Factory Miner, SAS Visual Data Mining and Machine Learning or just with programming

Multi-core/multi-threads processing.

Reply
Occasional Contributor
Posts: 6

Multi-core/multi-threads processing.

I have SAS 9.2/Enterprise 4.3 running on a windows (7 x64) machine with eight cores (+ Tesla C2075 GPU) and cannot get my program to run on more than one core at a time.  The code runs nicely and produces great results, but is very slow. The code is below; any thoughts on getting it to run on more than one core would be greatly appreciated.

Thanks,

Mel

proc surveyselect DATA=data

     noprint                                                        

     seed=1                                                         

     out=boot1

     method=srs

     samprate=.45                                              

  rep=250000;    

run;

Proc reg data=boot1 outest=est1(drop=_Smiley Happynoprint;

     MODEL Total = x1 x2 …… xn

/ SELECTION= adjrsq cp start=7 stop=7 best=1;

     by replicate;

run;

Proc means data=est1

     N;

     VAR x1 x2 …… xn;

     output out=test1

     N= ;

run;

quit;

Contributor
Posts: 73

Re: Multi-core/multi-threads processing.

Posted in reply to MelKunkel

What happens if you define:

OPTIONS THREADS;

Occasional Contributor
Posts: 6

Re: Multi-core/multi-threads processing.

Posted in reply to robby_beum

Log shows multiple threads available, but no additional cores are used.

Contributor
Posts: 73

Re: Multi-core/multi-threads processing.

Posted in reply to MelKunkel

What about defining the CPUCOUNT?:

OPTIONS THREADS=YES CPUCOUNT=8;

Occasional Contributor
Posts: 6

Re: Multi-core/multi-threads processing.

Posted in reply to robby_beum

Same results; shows the cores, but does not use them.

Frequent Contributor
Posts: 136

Re: Multi-core/multi-threads processing.

Posted in reply to MelKunkel

How slow is very slow?

You'll get that if you're running a SAS desktop license.

Do you have access to a SAS server license? Silly question I know as it is much more expensive.

With 8 cores and a desktop licence you could still run one surveyselect, but then split the resulting reps plus inference into 8 roughly equal parts and run all in paralell in batch, then append all tables after all batch SAS jobs have completed and analyse the boot stats in a 9th interactive session. What happens if you use another constant seed other than 1? (I always use my birthday in 8 digits, cos I think it's a lucky number. Hilarious ay?)


Ask a Question
Discussion stats
  • 5 replies
  • 488 views
  • 0 likes
  • 3 in conversation