No such file or directory

Post Reply
ywu
Posts: 1
Joined: Wed Feb 17, 2021 2:25 am
company / institution: University of Ottawa
Location: Ottawa, Canada

No such file or directory

Post by ywu »

Trying to run the Smart-G demo notebook after setting up the Pycuda environment. Pycuda works fine on its own but here’s the error I have when trying SMART-G:

Code: Select all


# run SMART-G
# this simulation uses an AFGL tropical atmosphere without aerosols (and absorption by Ozone and NO2)
# and a wind roughened sea surface
# Reflectance computation in Cone Sampling mode (default)
m = Smartg().run(THVDEG=30, wl=500., NBPHOTONS=1e9,
           atm=AtmAFGL('afglt'),
           surf=RoughSurface())
           
           
---------------------------------------------------------------------------
FileNotFoundError                         Traceback (most recent call last)
<ipython-input-6-1323c063cbd5> in <module>
      3 # and a wind roughened sea surface
      4 # Reflectance computation in Cone Sampling mode (default)
----> 5 m = Smartg().run(THVDEG=30, wl=500., NBPHOTONS=1e9,
      6            atm=AtmAFGL('afglt'),
      7            surf=RoughSurface())

~\Desktop\smartg-v0.9.2\smartg\smartg.py in __init__(self, pp, debug, verbose_photon, double, alis, back, bias, alt_pp, obj3D, opt3D, rng)
    502                            cache_dir='/tmp/',
    503                            include_dirs=[dir_src,
--> 504                                join(dir_src, 'incRNGs/Random123/')])
    505 
    506         # load the kernel

~\anaconda3\envs\smart_g37\lib\site-packages\pycuda\compiler.py in __init__(self, source, nvcc, options, keep, no_extern_c, arch, code, cache_dir, include_dirs)
    356             code,
    357             cache_dir,
--> 358             include_dirs,
    359         )
    360 

~\anaconda3\envs\smart_g37\lib\site-packages\pycuda\compiler.py in compile(source, nvcc, options, keep, no_extern_c, arch, code, cache_dir, include_dirs, target)
    296         options.append("-I" + i)
    297 
--> 298     return compile_plain(source, options, keep, nvcc, cache_dir, target)
    299 
    300 

~\anaconda3\envs\smart_g37\lib\site-packages\pycuda\compiler.py in compile_plain(source, options, keep, nvcc, cache_dir, target)
    176 
    177     if cache_dir:
--> 178         outf = open(cache_path, "wb")
    179         outf.write(result_data)
    180         outf.close()

FileNotFoundError: [Errno 2] No such file or directory: '/tmp/1ecd7c902e7576bb443aa518b5c74b9a.cubin'

ENVIRONMENT:
Windows 10 Home
CPU: Intel Xeon E5-2667
GPU: NVIDIA Quadro P5000
CUDA: 11.3.0_465.89
Visual Studio 2019 with the C++ Desktop Dev Module
Python: Anaconda Python 3.7 and 3.8 (neither worked)
Python environment: pip install pycuda (lukepfister didn't work); conda install -c conda-forge scipy nose notebook matplotlib netcdf4 progressbar2 pyhdf pandas ipywidgets

May I know how I can try to debug this? Thanks a lot!
Yulun
Post Reply