Skip to content
Snippets Groups Projects
Commit 5f3baeb4 authored by Pavel Gajdušek's avatar Pavel Gajdušek
Browse files

mdlint

parent 3fab3cd7
No related branches found
No related tags found
6 merge requests!368Update prace.md to document the change from qprace to qprod as the default...,!367Update prace.md to document the change from qprace to qprod as the default...,!366Update prace.md to document the change from qprace to qprod as the default...,!323extended-acls-storage-section,!196Master,!161Gajdusek cleaning
...@@ -59,21 +59,21 @@ $ g++ -v ...@@ -59,21 +59,21 @@ $ g++ -v
Simple program to test the compiler Simple program to test the compiler
```console ```cpp
$ cat count.upc $ cat count.upc
/* hello.upc - a simple UPC example */ /* hello.upc - a simple UPC example */
#include <upc.h> #include <upc.h>
#include <stdio.h> #include <stdio.h>
int main() { int main() {
if (MYTHREAD == 0) { if (MYTHREAD == 0) {
printf("Welcome to GNU UPC!!!n"); printf("Welcome to GNU UPC!!!n");
} }
upc_barrier; upc_barrier;
printf(" - Hello from thread %in", MYTHREAD); printf(" - Hello from thread %in", MYTHREAD);
return 0; return 0;
} }
``` ```
To compile the example use To compile the example use
...@@ -108,21 +108,21 @@ For production runs, it is recommended to use the native Infiband implementation ...@@ -108,21 +108,21 @@ For production runs, it is recommended to use the native Infiband implementation
Example UPC code: Example UPC code:
```console ```cpp
$ cat hello.upc $ cat hello.upc
/* hello.upc - a simple UPC example */ /* hello.upc - a simple UPC example */
#include <upc.h> #include <upc.h>
#include <stdio.h> #include <stdio.h>
int main() { int main() {
if (MYTHREAD == 0) { if (MYTHREAD == 0) {
printf("Welcome to Berkeley UPC!!!n"); printf("Welcome to Berkeley UPC!!!n");
} }
upc_barrier; upc_barrier;
printf(" - Hello from thread %in", MYTHREAD); printf(" - Hello from thread %in", MYTHREAD);
return 0; return 0;
} }
``` ```
To compile the example with the "ibv" UPC network use To compile the example with the "ibv" UPC network use
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment