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
fromradisimportcalc_spectrums=calc_spectrum(1900, 2300, # cm-1molecule='CO',
isotope='1,2,3',
pressure=1.01325, # barTgas=700, # Kmole_fraction=0.1,
path_length=1, # cmdatabank='hitemp', # or use 'hitemp'verbose=False,
mode='gpu'
)
s.apply_slit(0.5, 'nm') # simulate an experimental slits.plot('radiance')
Failed with the following :
RADIS configuration file created in /root/radis.json
Added HITEMP-CO database in /root/radis.json
---------------------------------------------------------------------------
FileNotFoundError Traceback (most recent call last)
<ipython-input-3-428ebed103f5> in <module>()
9 databank='hitemp', # or use 'hitemp'
10 verbose=False,
---> 11 mode='gpu'
12 )
13 s.apply_slit(0.5, 'nm') # simulate an experimental slit
3 frames
/usr/local/lib/python3.7/dist-packages/radis/lbl/gpu.py in <module>()
67 # TO-DO: read and compile CUDA code at install time, then pickle the cuda object
68 cuda_fname = join(getProjectRoot(), "lbl", "gpu.cu")
---> 69 with open(cuda_fname, "rb") as f:
70 cuda_code = f.read().decode()
71
FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/lib/python3.7/dist-packages/radis/lbl/gpu.cu'
The text was updated successfully, but these errors were encountered:
erwanp
changed the title
Lab with GPU
Radis on Colab with GPU
Oct 16, 2021
At some point the file was renamed to "gpu.cpp" to allow for cpu/gpu hybrid code ('emulated GPU'). Replacing "gpu.cu" with "gpu.cpp" should do the trick, though the fact that it's not updated might be indicative that there are still some issues with merging..
A first attempt to run RADIS on Google-colab with GPU (note that GPU must be enabled in Edit / Notebook settings)
https://colab.research.google.com/drive/1RnbAm_YIBZJW-7fEXp60oGFX8iAt_951#scrollTo=WRHD7xue_-yw
Got radis 0.10.3
Failed with the following :
The text was updated successfully, but these errors were encountered: