Compare commits

...

2 Commits

Author SHA1 Message Date
F. Dijkstra 9e3dbd99b7 Fixed instructions for using pgprof, and added pdf of jupyter notebook. 2017-06-21 10:46:16 +02:00
F. Dijkstra b961b06bb6 Reformatted some command line statements.
Replaced " by ' in command line statements, as these gave issues
in copy/paste to Linux command line.
2017-06-20 16:36:12 +02:00
2 changed files with 11 additions and 11 deletions

View File

@ -22,8 +22,7 @@
"cell_type": "code", "cell_type": "code",
"execution_count": 1, "execution_count": 1,
"metadata": { "metadata": {
"collapsed": false, "collapsed": false
"scrolled": true
}, },
"outputs": [ "outputs": [
{ {
@ -230,7 +229,7 @@
"%%bash\n", "%%bash\n",
"# To be sure we see some output from the compiler, we'll echo out \"Compiled Successfully!\" \n", "# To be sure we see some output from the compiler, we'll echo out \"Compiled Successfully!\" \n",
"#(if the compile does not return an error)\n", "#(if the compile does not return an error)\n",
"pgcc -fast -o task1_pre_out task1/task1.c && echo \"Compiled Successfully!\"" "pgcc -fast -o task1_pre_out task1/task1.c && echo 'Compiled Successfully!'"
] ]
}, },
{ {
@ -262,7 +261,8 @@
], ],
"source": [ "source": [
"%%bash\n", "%%bash\n",
"# Execute our single-thread CPU-only Jacobi Iteration to get timing information. Make sure you compiled successfully in the \n", "# Execute our single-thread CPU-only Jacobi Iteration to get timing information. \n",
"# Make sure you compiled successfully in the \n",
"# above command first.\n", "# above command first.\n",
"./task1_pre_out" "./task1_pre_out"
] ]
@ -337,7 +337,7 @@
], ],
"source": [ "source": [
"%%bash\n", "%%bash\n",
"pgcc -Minfo=all,ccff -fast -o task1/task1_simple_out task1/task1_simple.c && echo \"Compiled Successfully!\"" "pgcc -Minfo=all,ccff -fast -o task1/task1_simple_out task1/task1_simple.c && echo 'Compiled Successfully!'"
] ]
}, },
{ {
@ -363,7 +363,7 @@
"cell_type": "markdown", "cell_type": "markdown",
"metadata": {}, "metadata": {},
"source": [ "source": [
"Click on `File > New Session` to start a new profiling session. Select the executable to profile by pressing the `Browse` button, clicking `ubuntu` from the file left side of the file selector, the selecting `notebook` and then `C`, then selecting `task_simple_out`.\n", "Click on `File > New Session` to start a new profiling session. Select the executable to profile by pressing the `Browse` button, then selecting `task_simple_out` `from OpenACC/labs/lab1/C`.\n",
"\n", "\n",
"<div align=\"center\"><img src=\"files/pgprof17_create_new_session.png\" width=\"60%\"></div>\n", "<div align=\"center\"><img src=\"files/pgprof17_create_new_session.png\" width=\"60%\"></div>\n",
"\n", "\n",
@ -454,7 +454,7 @@
"# Compile the task2.c file with the pgcc compiler\n", "# Compile the task2.c file with the pgcc compiler\n",
"# -acc tells the compiler to process the source recognizing #pragma acc directives\n", "# -acc tells the compiler to process the source recognizing #pragma acc directives\n",
"# -Minfo tells the compiler to share information about the compilation process\n", "# -Minfo tells the compiler to share information about the compilation process\n",
"pgcc -acc -Minfo -fast -ta=tesla -o task2_out task2/task2.c && echo \"Compiled Successfully\"" "pgcc -acc -Minfo -fast -ta=tesla -o task2_out task2/task2.c && echo 'Compiled Successfully'"
] ]
}, },
{ {
@ -609,7 +609,7 @@
"outputs": [], "outputs": [],
"source": [ "source": [
"%%bash\n", "%%bash\n",
"pgcc -fast -acc -Minfo=accel -ta=tesla -o task3_out task3/task3.c && echo \"Compiled Successfully\"" "pgcc -fast -acc -Minfo=accel -ta=tesla -o task3_out task3/task3.c && echo 'Compiled Successfully'"
] ]
}, },
{ {
@ -777,7 +777,7 @@
"outputs": [], "outputs": [],
"source": [ "source": [
"%%bash\n", "%%bash\n",
"pgcc -acc -Minfo=accel -fast -ta=tesla -o task4_out task4/task4.c && echo \"Compiled Successfully\"" "pgcc -acc -Minfo=accel -fast -ta=tesla -o task4_out task4/task4.c && echo 'Compiled Successfully'"
] ]
}, },
{ {
@ -836,7 +836,7 @@
"outputs": [], "outputs": [],
"source": [ "source": [
"%%bash\n", "%%bash\n",
"pgcc -acc -fast -ta=tesla -Minfo=accel -o task4_out task4/task4.c && echo \"Compiled Successfully\"" "pgcc -acc -fast -ta=tesla -Minfo=accel -o task4_out task4/task4.c && echo 'Compiled Successfully'"
] ]
}, },
{ {
@ -931,7 +931,7 @@
"outputs": [], "outputs": [],
"source": [ "source": [
"%%bash\n", "%%bash\n",
"pgcc -acc -fast -ta=tesla -Minfo=accel -o task4_4096_out task4/task4_4096_solution.c && echo \"Compiled Successfully\"" "pgcc -acc -fast -ta=tesla -Minfo=accel -o task4_4096_out task4/task4_4096_solution.c && echo 'Compiled Successfully'"
] ]
}, },
{ {

BIN
lab1/C/OpenACC C.pdf Normal file

Binary file not shown.