could not use cuda application inside container

I find that I could not call application with cuda support inside container even with excluding /dev, /proc, /sys folders inside the container. (which means these folders inside container are actual folders in host)
The application fails when trying to read data from /dev/nvidiactl (marked with font bold). I don’t have any cuda library installed inside container while all libraries needed are loaded from host. I am not sure how can I make application run properly with GPU mode.

pid 18836] getcwd("/home/yangxu/.docker/ubuntu/16.04/workspace/Xxy3Y3NFzK/rw/root/ont-guppy", 4096) = 73
[pid 18836] stat("/dev/nvidiactl", {st_mode=S_IFCHR|0666, st_rdev=makedev(195, 255), ...}) = 0
[pid 18836] semop(3309669, {{0, -1, SEM_UNDO}}, 1) = 0
[pid 18836] msgsnd(6488262, {1, "\3\0\0\0wI\0\0\245\0\0\0\0\0\0\0\0\0\0\0\333C\1\0\0\0\0\0\5\0\0\0"...}, 56, 0) = 0
[pid 18633] <... msgrcv resumed> {1, "\3\0\0\0wI\0\0\245\0\0\0\0\0\0\0\0\0\0\0\333C\1\0\0\0\0\0\5\0\0\0"...}, 64, 0, 0) = 56
[pid 18836] msgrcv(6521031,  <unfinished ...>
[pid 18633] msgsnd(6521031, {1, "\3\0\0\0wI\0\0\245\0\0\0\0\0\0\0\0\0\0\0\333C\1\0\0\0\0\0\5\0\0\0"...}, 56, 0 <unfinished ...>
[pid 18836] <... msgrcv resumed> {1, "\3\0\0\0wI\0\0\245\0\0\0\0\0\0\0\0\0\0\0\333C\1\0\0\0\0\0\5\0\0\0"...}, 56, 0, 0) = 56
[pid 18633] <... msgsnd resumed> )      = 0
[pid 18836] semop(3309669, {{0, 1, SEM_UNDO}}, 1 <unfinished ...>
[pid 18633] msgrcv(6488262,  <unfinished ...>
[pid 18836] <... semop resumed> )       = 0
[pid 18836] stat("/dev/nvidiactl", {st_mode=S_IFCHR|0666, st_rdev=makedev(195, 255), ...}) = 0
[pid 18836] semop(3309669, {{0, -1, SEM_UNDO}}, 1) = 0
[pid 18836] msgsnd(6488262, {1, "\3\0\0\0wI\0\0\246\0\0\0\0\0\0\0\0\0\0\0\333C\1\0\0\0\0\0\5\0\0\0"...}, 56, 0) = 0
[pid 18633] <... msgrcv resumed> {1, "\3\0\0\0wI\0\0\246\0\0\0\0\0\0\0\0\0\0\0\333C\1\0\0\0\0\0\5\0\0\0"...}, 64, 0, 0) = 56
[pid 18836] msgrcv(6521031,  <unfinished ...>
[pid 18633] msgsnd(6521031, {1, "\3\0\0\0wI\0\0\246\0\0\0\0\0\0\0\0\0\0\0\333C\1\0\0\0\0\0\5\0\0\0"...}, 56, 0 <unfinished ...>
[pid 18836] <... msgrcv resumed> {1, "\3\0\0\0wI\0\0\246\0\0\0\0\0\0\0\0\0\0\0\333C\1\0\0\0\0\0\5\0\0\0"...}, 56, 0, 0) = 56
[pid 18633] <... msgsnd resumed> )      = 0
[pid 18836] semop(3309669, {{0, 1, SEM_UNDO}}, 1 <unfinished ...>
[pid 18633] msgrcv(6488262,  <unfinished ...>
[pid 18836] <... semop resumed> )       = 0
[pid 18836] time(NULL)                  = 1562162203
[pid 18836] stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=333, ...}) = 0
[b]
[pid 18836] open("/dev/nvidiactl", O_RDWR) = 6
[pid 18836] fcntl(6, F_SETFD, FD_CLOEXEC) = 0
[pid 18836] ioctl(6, 0xc04846d2, 0x7f7bc3539800) = -1 EINVAL (Invalid argument)
[/b]
[pid 18836] close(6)                    = 0
[pid 18836] ioctl(5, FIGETBSZ, 0)       = 0
[pid 18836] close(5)                    = 0
[pid 18836] futex(0x7f7bc5109680, FUTEX_WAKE_PRIVATE, 2147483647) = 0
[pid 18836] futex(0x7f7bcb589c78, FUTEX_WAKE_PRIVATE, 2147483647) = 0
[pid 18836] madvise(0x7f7bc2b3a000, 10465280, MADV_DONTNEED) = 0
[pid 18836] _exit(0)                    = ?
[pid 18836] +++ exited with 0 +++
[pid 18807] <... futex resumed> )       = 0
[pid 18807] futex(0x7f7bcb589c88, FUTEX_WAKE_PRIVATE, 2147483647) = 0
[pid 18807] brk(0x7f7bcd237000)         = 0x7f7bcd237000
[pid 18807] brk(0x7f7bcd046000)         = 0x7f7bcd046000
[pid 18807] brk(0x7f7bcce56000)         = 0x7f7bcce56000
[pid 18807] brk(0x7f7bccc66000)         = 0x7f7bccc66000
[pid 18807] brk(0x7f7bcca76000)         = 0x7f7bcca76000
[pid 18807] brk(0x7f7bcc885000)         = 0x7f7bcc885000
[pid 18807] brk(0x7f7bcc695000)         = 0x7f7bcc695000
[pid 18807] brk(0x7f7bcc4a5000)         = 0x7f7bcc4a5000
[pid 18807] brk(0x7f7bcc2b5000)         = 0x7f7bcc2b5000
[pid 18807] brk(0x7f7bcc0c4000)         = 0x7f7bcc0c4000
[pid 18807] brk(0x7f7bcbed4000)         = 0x7f7bcbed4000
[pid 18807] brk(0x7f7bcbce4000)         = 0x7f7bcbce4000
[pid 18807] brk(0x7f7bcbaf4000)         = 0x7f7bcbaf4000
[pid 18807] brk(0x7f7bcb903000)         = 0x7f7bcb903000
[pid 18807] brk(0x7f7bcb713000)         = 0x7f7bcb713000
[pid 18807] close(4)                    = 0
[pid 18807] write(3, "2019-07-03 22:56:43.786789 [gupp"..., 171) = 171
[pid 18807] write(2, "[guppy/error] main: Could not cr"..., 149[guppy/error] main: Could not create CUDA device 0: CUDA error at /builds/ofan/ont_core_cpp/ont_core/common/cuda_common.cpp:183: CUDA_ERROR_NO_DEVICE) = 149