Skip to content

Commit c1b1311

Browse files
committed
Update select
1 parent 2a1e3c0 commit c1b1311

File tree

1 file changed

+42
-152
lines changed

1 file changed

+42
-152
lines changed

labs/lab1_select/select.ipynb

Lines changed: 42 additions & 152 deletions
Original file line numberDiff line numberDiff line change
@@ -52,61 +52,37 @@
5252
},
5353
{
5454
"cell_type": "code",
55-
"execution_count": 1,
56-
"metadata": {},
57-
"outputs": [
58-
{
59-
"name": "stdout",
60-
"output_type": "stream",
61-
"text": [
62-
"ERROR!\n"
63-
]
64-
}
65-
],
55+
"execution_count": null,
56+
"metadata": {},
57+
"outputs": [],
6658
"source": [
6759
"!g++ -std=c++20 -Ofast -DNDEBUG -o select exercise0.cpp\n",
6860
"!./select 30"
6961
]
7062
},
7163
{
7264
"cell_type": "code",
73-
"execution_count": 2,
74-
"metadata": {},
75-
"outputs": [
76-
{
77-
"name": "stdout",
78-
"output_type": "stream",
79-
"text": [
80-
"ERROR!\n"
81-
]
82-
}
83-
],
65+
"execution_count": null,
66+
"metadata": {},
67+
"outputs": [],
8468
"source": [
8569
"!clang++ -std=c++20 -Ofast -DNDEBUG -isystem/usr/local/range-v3/include -o select exercise0.cpp\n",
8670
"!./select 30"
8771
]
8872
},
8973
{
9074
"cell_type": "code",
91-
"execution_count": 3,
92-
"metadata": {},
93-
"outputs": [
94-
{
95-
"name": "stdout",
96-
"output_type": "stream",
97-
"text": [
98-
"ERROR!\n"
99-
]
100-
}
101-
],
75+
"execution_count": null,
76+
"metadata": {},
77+
"outputs": [],
10278
"source": [
10379
"!nvc++ -std=c++20 -fast -DNDEBUG -o select exercise0.cpp\n",
10480
"!./select 30"
10581
]
10682
},
10783
{
10884
"cell_type": "code",
109-
"execution_count": 4,
85+
"execution_count": null,
11086
"metadata": {},
11187
"outputs": [],
11288
"source": [
@@ -127,64 +103,37 @@
127103
},
128104
{
129105
"cell_type": "code",
130-
"execution_count": 5,
131-
"metadata": {},
132-
"outputs": [
133-
{
134-
"name": "stdout",
135-
"output_type": "stream",
136-
"text": [
137-
"OK!\n",
138-
"w = 42 72 0 12 30 9 18 39 54 42 69 \n"
139-
]
140-
}
141-
],
106+
"execution_count": null,
107+
"metadata": {},
108+
"outputs": [],
142109
"source": [
143110
"!g++ -std=c++17 -Ofast -DNDEBUG -o select solutions/exercise0.cpp\n",
144111
"!./select 30"
145112
]
146113
},
147114
{
148115
"cell_type": "code",
149-
"execution_count": 6,
150-
"metadata": {},
151-
"outputs": [
152-
{
153-
"name": "stdout",
154-
"output_type": "stream",
155-
"text": [
156-
"OK!\n",
157-
"w = 42 72 0 12 30 9 18 39 54 42 69 \n"
158-
]
159-
}
160-
],
116+
"execution_count": null,
117+
"metadata": {},
118+
"outputs": [],
161119
"source": [
162120
"!clang++ -std=c++17 -Ofast -DNDEBUG -isystem/usr/local/range-v3/include -o select solutions/exercise0.cpp\n",
163121
"!./select 30"
164122
]
165123
},
166124
{
167125
"cell_type": "code",
168-
"execution_count": 7,
169-
"metadata": {},
170-
"outputs": [
171-
{
172-
"name": "stdout",
173-
"output_type": "stream",
174-
"text": [
175-
"OK!\n",
176-
"w = 42 72 0 12 30 9 18 39 54 42 69 \n"
177-
]
178-
}
179-
],
126+
"execution_count": null,
127+
"metadata": {},
128+
"outputs": [],
180129
"source": [
181130
"!nvc++ -std=c++20 -fast -DNDEBUG -o select solutions/exercise0.cpp\n",
182131
"!./select 30"
183132
]
184133
},
185134
{
186135
"cell_type": "code",
187-
"execution_count": 8,
136+
"execution_count": null,
188137
"metadata": {},
189138
"outputs": [],
190139
"source": [
@@ -212,79 +161,47 @@
212161
},
213162
{
214163
"cell_type": "code",
215-
"execution_count": 9,
216-
"metadata": {},
217-
"outputs": [
218-
{
219-
"name": "stdout",
220-
"output_type": "stream",
221-
"text": [
222-
"ERROR!\n"
223-
]
224-
}
225-
],
164+
"execution_count": null,
165+
"metadata": {},
166+
"outputs": [],
226167
"source": [
227168
"!g++ -std=c++20 -Ofast -DNDEBUG -o select exercise1.cpp -ltbb\n",
228169
"!./select 30"
229170
]
230171
},
231172
{
232173
"cell_type": "code",
233-
"execution_count": 10,
234-
"metadata": {},
235-
"outputs": [
236-
{
237-
"name": "stdout",
238-
"output_type": "stream",
239-
"text": [
240-
"ERROR!\n"
241-
]
242-
}
243-
],
174+
"execution_count": null,
175+
"metadata": {},
176+
"outputs": [],
244177
"source": [
245178
"!clang++ -std=c++20 -Ofast -DNDEBUG -isystem/usr/local/range-v3/include -o select exercise1.cpp\n",
246179
"!./select 30"
247180
]
248181
},
249182
{
250183
"cell_type": "code",
251-
"execution_count": 11,
252-
"metadata": {},
253-
"outputs": [
254-
{
255-
"name": "stdout",
256-
"output_type": "stream",
257-
"text": [
258-
"ERROR!\n"
259-
]
260-
}
261-
],
184+
"execution_count": null,
185+
"metadata": {},
186+
"outputs": [],
262187
"source": [
263188
"!nvc++ -stdpar=multicore -std=c++20 -fast -DNDEBUG -o select exercise1.cpp\n",
264189
"!./select 30"
265190
]
266191
},
267192
{
268193
"cell_type": "code",
269-
"execution_count": 12,
270-
"metadata": {},
271-
"outputs": [
272-
{
273-
"name": "stdout",
274-
"output_type": "stream",
275-
"text": [
276-
"ERROR!\n"
277-
]
278-
}
279-
],
194+
"execution_count": null,
195+
"metadata": {},
196+
"outputs": [],
280197
"source": [
281198
"!nvc++ -stdpar=gpu -std=c++20 -fast -DNDEBUG -o select exercise1.cpp\n",
282199
"!./select 30"
283200
]
284201
},
285202
{
286203
"cell_type": "code",
287-
"execution_count": 13,
204+
"execution_count": null,
288205
"metadata": {},
289206
"outputs": [],
290207
"source": [
@@ -305,56 +222,29 @@
305222
},
306223
{
307224
"cell_type": "code",
308-
"execution_count": 14,
309-
"metadata": {},
310-
"outputs": [
311-
{
312-
"name": "stdout",
313-
"output_type": "stream",
314-
"text": [
315-
"OK!\n",
316-
"w = 42 72 0 12 30 9 18 39 54 42 69 \n"
317-
]
318-
}
319-
],
225+
"execution_count": null,
226+
"metadata": {},
227+
"outputs": [],
320228
"source": [
321229
"!g++ -std=c++17 -Ofast -DNDEBUG -o select solutions/exercise1.cpp -ltbb\n",
322230
"!./select 30"
323231
]
324232
},
325233
{
326234
"cell_type": "code",
327-
"execution_count": 15,
328-
"metadata": {},
329-
"outputs": [
330-
{
331-
"name": "stdout",
332-
"output_type": "stream",
333-
"text": [
334-
"OK!\n",
335-
"w = 42 72 0 12 30 9 18 39 54 42 69 \n"
336-
]
337-
}
338-
],
235+
"execution_count": null,
236+
"metadata": {},
237+
"outputs": [],
339238
"source": [
340239
"!clang++ -std=c++17 -Ofast -DNDEBUG -isystem/usr/local/range-v3/include -o select solutions/exercise1.cpp -ltbb\n",
341240
"!./select 30"
342241
]
343242
},
344243
{
345244
"cell_type": "code",
346-
"execution_count": 16,
347-
"metadata": {},
348-
"outputs": [
349-
{
350-
"name": "stdout",
351-
"output_type": "stream",
352-
"text": [
353-
"OK!\n",
354-
"w = 42 72 0 12 30 9 18 39 54 42 69 \n"
355-
]
356-
}
357-
],
245+
"execution_count": null,
246+
"metadata": {},
247+
"outputs": [],
358248
"source": [
359249
"!nvc++ -stdpar=multicore -std=c++20 -fast -DNDEBUG -o select solutions/exercise1.cpp\n",
360250
"!./select 30"

0 commit comments

Comments
 (0)