rsnt_translations
56,563
edits
No edit summary |
(Marked this version for translation) |
||
Line 2: | Line 2: | ||
<translate> | <translate> | ||
[[Category:Software]] | [[Category:Software]] | ||
=Quick start guide= | =Quick start guide= <!--T:32--> | ||
To begin working with CUDA load a CUDA module. | To begin working with CUDA load a CUDA module. | ||
<source lang="console"> | <source lang="console"> | ||
Line 15: | Line 15: | ||
#include <iostream> | #include <iostream> | ||
<!--T:33--> | |||
__global__ void add (int *a, int *b, int *c){ | __global__ void add (int *a, int *b, int *c){ | ||
*c = *a + *b; | *c = *a + *b; | ||
} | } | ||
<!--T:34--> | |||
int main(void){ | int main(void){ | ||
int a, b, c; | int a, b, c; | ||
Line 61: | Line 63: | ||
}} | }} | ||
<!--T:35--> | |||
Submit your GPU job to the scheduler with this command. | Submit your GPU job to the scheduler with this command. | ||
<source lang="console"> | <source lang="console"> | ||
Line 67: | Line 70: | ||
</source>For information about the <code>sbatch</code> command and running and monitoring jobs see the [[Running jobs|running jobs]] page. | </source>For information about the <code>sbatch</code> command and running and monitoring jobs see the [[Running jobs|running jobs]] page. | ||
<!--T:36--> | |||
Once your job has finished you should see an output file similar to this. | Once your job has finished you should see an output file similar to this. | ||
<source lang="console"> | <source lang="console"> |