Skip to content

Commit 8a40f94

Browse files
committed
fixes to run on Anvil at Purdue
1 parent ab77b8b commit 8a40f94

File tree

6 files changed

+2161
-1693
lines changed

6 files changed

+2161
-1693
lines changed

part1_getting_started.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"tf.random.set_seed(seed)\n",
2828
"import os\n",
2929
"\n",
30-
"os.environ['PATH'] = os.environ['XILINX_VITIS'] + '/bin:' + os.environ['PATH']"
30+
"os.environ['PATH'] = '/opt/Xilinx//Vitis_HLS/2024.1/bin:' + os.environ['PATH']"
3131
]
3232
},
3333
{
@@ -400,7 +400,7 @@
400400
"name": "python",
401401
"nbconvert_exporter": "python",
402402
"pygments_lexer": "ipython3",
403-
"version": "3.10.14"
403+
"version": "3.10.11"
404404
}
405405
},
406406
"nbformat": 4,

part2_advanced_config.ipynb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"import plotting\n",
2626
"import os\n",
2727
"\n",
28-
"os.environ['PATH'] = os.environ['XILINX_VITIS'] + '/bin:' + os.environ['PATH']"
28+
"os.environ['PATH'] = '/opt/Xilinx//Vitis_HLS/2024.1/bin:' + os.environ['PATH']"
2929
]
3030
},
3131
{
@@ -167,7 +167,7 @@
167167
"for layer in config['LayerName'].keys():\n",
168168
" config['LayerName'][layer]['Trace'] = True\n",
169169
"hls_model = hls4ml.converters.convert_from_keras_model(\n",
170-
" model, hls_config=config, backend='Vitis', output_dir='model_1_vivado/hls4ml_prj_2', part='xcu250-figd2104-2L-e'\n",
170+
" model, hls_config=config, backend='Vitis', output_dir='model_1/hls4ml_prj_2', part='xcu250-figd2104-2L-e'\n",
171171
")"
172172
]
173173
},
@@ -293,7 +293,7 @@
293293
"# Set the ReuseFactor to 2 throughout\n",
294294
"config['Model']['ReuseFactor'] = 2\n",
295295
"hls_model = hls4ml.converters.convert_from_keras_model(\n",
296-
" model, hls_config=config, backend='vitis', output_dir='model_1)vivado/hls4ml_prj_2', part='xcu250-figd2104-2L-e'\n",
296+
" model, hls_config=config, backend='vitis', output_dir='model_1/hls4ml_prj_2', part='xcu250-figd2104-2L-e'\n",
297297
")\n",
298298
"hls_model.compile()\n",
299299
"y_hls = hls_model.predict(X_test)\n",
@@ -315,7 +315,7 @@
315315
"\n",
316316
"While the C-Synthesis is running, we can monitor the progress looking at the log file by opening a terminal from the notebook home, and executing:\n",
317317
"\n",
318-
"`tail -f model_1_vivado/hls4ml_prj_2/vivado_hls.log`"
318+
"`tail -f model_1_vivado/hls4ml_prj_2/vitis_hls.log`"
319319
]
320320
},
321321
{
@@ -340,7 +340,7 @@
340340
"metadata": {},
341341
"outputs": [],
342342
"source": [
343-
"hls4ml.report.read_vivado_report('model_1_vivado/hls4ml_prj_2')"
343+
"hls4ml.report.read_vivado_report('model_1/hls4ml_prj_2')"
344344
]
345345
},
346346
{
@@ -349,7 +349,7 @@
349349
"metadata": {},
350350
"outputs": [],
351351
"source": [
352-
"hls4ml.report.read_vivado_report('model_1_vivado/hls4ml_prj')"
352+
"hls4ml.report.read_vivado_report('model_1/hls4ml_prj')"
353353
]
354354
},
355355
{
@@ -378,7 +378,7 @@
378378
"name": "python",
379379
"nbconvert_exporter": "python",
380380
"pygments_lexer": "ipython3",
381-
"version": "3.10.14"
381+
"version": "3.10.11"
382382
}
383383
},
384384
"nbformat": 4,

0 commit comments

Comments
 (0)