rsnt_translations
56,430
edits
mNo edit summary |
No edit summary |
||
Line 92: | Line 92: | ||
<!--T:18--> | <!--T:18--> | ||
To install packages from [https://cran.r-project.org/ CRAN], you can use <tt>install.packages</tt> while running an interactive R session on the cluster's login node. Many R packages are developed using the | To install packages from [https://cran.r-project.org/ CRAN], you can use <tt>install.packages</tt> while running an interactive R session on the cluster's login node. Many R packages are developed using the GNU family of compilers so we recommend that you load a <tt>gcc</tt> [[Utiliser des modules/en|module]] before trying to install any R packages. Use the same version of the <tt>gcc</tt> for all packages you install. | ||
{{Command | {{Command | ||
|module load gcc/5.4.0 | |module load gcc/5.4.0 | ||
Line 132: | Line 132: | ||
}} | }} | ||
==Exploiting | ==Exploiting parallelism in R== <!--T:46--> | ||
<!--T:71--> | <!--T:71--> | ||
Line 164: | Line 164: | ||
<!--T:26--> | <!--T:26--> | ||
2. Select the R version and load the required Open MPI module. This example uses Open MPI version 1.10.7 which is needed to spawn processes correctly; the default Open MPI module 2.1.1 has a problem with | 2. Select the R version and load the required Open MPI module. This example uses Open MPI version 1.10.7 which is needed to spawn processes correctly; the default Open MPI module 2.1.1 has a problem with this at present. | ||
<source lang="bash"> | <source lang="bash"> | ||
module load r/3.4.0 | module load r/3.4.0 | ||
Line 248: | Line 248: | ||
<!--T:38--> | <!--T:38--> | ||
For more on submitting jobs, see | For more on submitting jobs, see [[Running jobs]]. | ||
=== doParallel and foreach === <!--T:39--> | === doParallel and foreach === <!--T:39--> | ||
Line 330: | Line 330: | ||
<!--T:47--> | <!--T:47--> | ||
For more on submitting jobs, see | For more on submitting jobs, see [[Running jobs]]. | ||
=== doParallel and makeCluster === <!--T:56--> | === doParallel and makeCluster === <!--T:56--> | ||
Line 400: | Line 400: | ||
3. Submit the job with: | 3. Submit the job with: | ||
{{Command|sbatch job_makecluster.sh}} | {{Command|sbatch job_makecluster.sh}} | ||
For more information on submitting jobs, see | For more information on submitting jobs, see [[Running jobs]]. | ||
</translate> | </translate> |