Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeError: function_attributes(): after cudaFuncGetAttributes: invalid device function #9290

Closed
BigFishMaster opened this issue Mar 21, 2018 · 6 comments
Labels
User 用于标记用户问题

Comments

@BigFishMaster
Copy link
Contributor

BigFishMaster commented Mar 21, 2018

when running se-resnext-50 networking to train imagenet-1000 dataset, I got an ERROR as below.

Traceback (most recent call last):
  File "se_resnext50_parallel.py", line 237, in <module>
    train(learning_rate=0.1, batch_size=256, num_passes=120, init_model=None)
  File "se_resnext50_parallel.py", line 174, in train
    exe.run(fluid.default_startup_program())
  File "/ssd1/yancanxiang/se_resnext50_parallel_MSRA_imagenet1000/python-gcc482-paddle/lib/python2.7/site-packages/paddle/fluid/executor.py", line 373, in run
    self.executor.run(program.desc, scope, 0, True, True)
RuntimeError: function_attributes(): after cudaFuncGetAttributes: invalid device function

I use the paddle-wheel from folows:
paddle url:https://paddleci.ngrok.io/viewType.html?buildTypeId=Manylinux1_Cuda80cudnn5cp27cp27mu
wheel:https://paddleci.ngrok.io/repository/download/Manylinux1_Cuda80cudnn5cp27cp27mu/31050:id/paddlepaddle_gpu-0.11.0-cp27-cp27mu-linux_x86_64.whl

@typhoonzero typhoonzero added the User 用于标记用户问题 label Mar 21, 2018
@typhoonzero
Copy link
Contributor

cuda error "invalid device function" usually means your CUDA library does not fit your hardware and driver.

dup: #7820 #6524 #5674 #5629 #34

@BigFishMaster
Copy link
Contributor Author

Ok, I will check this. @typhoonzero

@BigFishMaster
Copy link
Contributor Author

@typhoonzero I tried (cuda8 + cudnn5/cudnn5.1 + driver384.81/384.66) 4 combination, but failed.

@qingqing01
Copy link
Contributor

qingqing01 commented Mar 22, 2018

@BigFishMaster From doc http://arnon.dk/matching-sm-architectures-arch-and-gencode-for-various-nvidia-cards/

Tesla V100 should use CUDA 9.0 or later. There is no problem when I run Fluid model with CUDA 9.0 + cuDNN V7.

@BigFishMaster
Copy link
Contributor Author

@qingqing01 I meet a gcc problem:

ImportError: /opt/compiler/gcc-4.8.2/lib/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /ssd1/yancanxiang/se_resnext50_parallel_MSRA_imagenet1000/python-gcc482-paddle/lib/python2.7/site-packages/paddle/fluid/core.so)

@BigFishMaster
Copy link
Contributor Author

I tried jumbo with gcc5.3 and paddle is ok. Thanks @qingqing01

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
User 用于标记用户问题
Projects
None yet
Development

No branches or pull requests

3 participants