Re: [Rd] Set the number of threads using openmp with .C

2010-07-10 Thread Dirk Eddelbuettel
On 10 July 2010 at 13:01, Dirk Eddelbuettel wrote: | | Eduardo, | | On 10 July 2010 at 19:31, Eduardo García wrote: | | Hi everybody! Could somebody help me with the following? | | | | I'm trying to run a simple Hello World code in openmp using .C function. The | | C code i have is: | | | | #

Re: [Rd] Set the number of threads using openmp with .C

2010-07-10 Thread Dirk Eddelbuettel
Eduardo, On 10 July 2010 at 19:31, Eduardo García wrote: | Hi everybody! Could somebody help me with the following? | | I'm trying to run a simple Hello World code in openmp using .C function. The | C code i have is: | | #include | #include | #include | | void hello_omp(int *n) { |i

[Rd] Set the number of threads using openmp with .C

2010-07-10 Thread Eduardo García
Hi everybody! Could somebody help me with the following? I'm trying to run a simple Hello World code in openmp using .C function. The C code i have is: #include #include #include void hello_omp(int *n) { int th_id, nthreads; omp_set_num_threads(*n); #pragma omp parallel private(t