You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Once you are logged into a ShARC head node then request an interactive session by typing `qrshx`. This creates an interactive session on a CPU worker node which supports running graphical applications as well as command line programs. The worker node **will not** be a GPU accelerated node and **cannot** be used to execute CUDA applications. The worker node can however be used for CUDA compilation, interactive editing of our GPU code and submission of jobs to a GPU accelerated worker. This is a much better solution than running an interactive session on a GPU node as interactive jobs will request GPU resource which will be unused if you are performing tasks like modifying or building your code.
26
+
Once you are logged into a ShARC head node then request an interactive session by typing
27
+
28
+
qrshx
29
+
30
+
This creates an interactive session on a CPU worker node which supports running graphical applications as well as command line programs. The worker node **will not** be a GPU accelerated node and **cannot** be used to execute CUDA applications. The worker node can however be used for CUDA compilation, interactive editing of our GPU code and submission of jobs to a GPU accelerated worker. This is a much better solution than running an interactive session on a GPU node as interactive jobs will request GPU resource which will be unused if you are performing tasks like modifying or building your code.
27
31
28
32
## Configuring the CPU worker node ##
29
33
@@ -55,7 +59,11 @@ From your interactive session on the CPU worker node get the *"hello world for G
This will check out the hello world example into the folder `CUDAHelloWorld`. Take a look at the contents of this file in the console using `nano` e.g.
62
+
This will check out the hello world example into the folder `CUDAHelloWorld`. Change directory to this folder. e.g.
63
+
64
+
cd CUDAHellowWorld
65
+
66
+
Take a look at the contents of this file in the console using `nano` e.g.
59
67
60
68
nano helloworld.cu
61
69
@@ -124,7 +132,7 @@ Before moving onto the [first lab classes](../lab01) for day 1, try modifying th
124
132
125
133
You can now launch your kernel using these dim variables.
126
134
127
-
helloworld<<<grid, block>>>();
135
+
hello_kernel<<<grid, block>>>();
128
136
129
137
To view the y and z index of the thread or the block use the y and z member variables of the `threadIdx` or `blockIdx` dims.
0 commit comments