Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
junsunchoi committed Apr 18, 2024
1 parent 50fb2a5 commit 25edbe6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wlutil/launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ def getSpikeCmd(config, nodisk=False):
log.warn("You have hard-coded a disk image in your workload. Spike does not support disk images, your workload may not work correctly. Consider building with the '--nodisk' option (for linux-based workloads).")
elif 'img' in config and not nodisk:
riscv_lib_path = os.getenv('RISCV')
if not os.path.isfile(riscv_lib_path+'/lib/libspikedevices.so'):
if not os.path.isfile(riscv_lib_path+'/lib/libspikedevices.so'):
raise ValueError("Spike does not support disk-based configurations without libspikedevices.so")

spikeArgs += '--extlib=libspikedevices.so ' +\
"--device=\"iceblk," +\
'img=' + str(config.get('img', '')) + "\" "
Expand All @@ -50,7 +50,7 @@ def getSpikeCmd(config, nodisk=False):
spikeBin = 'spike'

cmd = [spikeBin,
spikeArgs, #config.get('spike-args', ''),
spikeArgs, # config.get('spike-args', ''),
' -p' + str(config['cpus']),
' -m' + str(int(config['mem'] / (1024*1024)))]
if nodisk:
Expand Down

0 comments on commit 25edbe6

Please sign in to comment.