Error "cuCtxCreate(): invalid device ordinal" with multiple sessions
#1
When trying to run multiple sessions at the same time the second session fails with the following error 
Code:
cuCtxCreate(): invalid device ordinal

I have a second system with similar hardware that works fine, but this new system isn't working the same. 

I've tried updating the NVIDIA driver to 418.67/430.34 and installed CUDA sdk, but nothing helped. Even tried downgrading the kernel from 5.0.0-15 to 4.18.0-25.
Code:
root@hostname:~# hashcat -I hashcat (v5.1.0-1243-gd1f473d6) starting... CUDA Info: ========== CUDA.Version.: 10.1 Backend Device ID #1 (Alias: #9)   Name...........: GeForce GTX 1080 Ti   Processor(s)...: 28   Clock..........: 1582   Memory.........: 11178 MB Backend Device ID #2 (Alias: #10)   Name...........: GeForce GTX 1080 Ti   Processor(s)...: 28   Clock..........: 1582   Memory.........: 11178 MB Backend Device ID #3 (Alias: #11)   Name...........: GeForce GTX 1080 Ti   Processor(s)...: 28   Clock..........: 1582   Memory.........: 11178 MB Backend Device ID #4 (Alias: #12)   Name...........: GeForce GTX 1080 Ti   Processor(s)...: 28   Clock..........: 1582   Memory.........: 11178 MB Backend Device ID #5 (Alias: #13)   Name...........: GeForce GTX 1080 Ti   Processor(s)...: 28   Clock..........: 1582   Memory.........: 11178 MB Backend Device ID #6 (Alias: #14)   Name...........: GeForce GTX 1080 Ti   Processor(s)...: 28   Clock..........: 1582   Memory.........: 11178 MB Backend Device ID #7 (Alias: #15)   Name...........: GeForce GTX 1080 Ti   Processor(s)...: 28   Clock..........: 1582   Memory.........: 11178 MB Backend Device ID #8 (Alias: #16)   Name...........: GeForce GTX 1080 Ti   Processor(s)...: 28   Clock..........: 1582   Memory.........: 11178 MB OpenCL Info: ============ OpenCL Platform ID #1   Vendor..: NVIDIA Corporation   Name....: NVIDIA CUDA   Version.: OpenCL 1.2 CUDA 10.1.152   Backend Device ID #9 (Alias: #1)     Type...........: GPU     Vendor.ID......: 32     Vendor.........: NVIDIA Corporation     Name...........: GeForce GTX 1080 Ti     Version........: OpenCL 1.2 CUDA     Processor(s)...: 28     Clock..........: 1582     Memory.........: 2794/11178 MB allocatable     OpenCL.Version.: OpenCL C 1.2     Driver.Version.: 418.67   Backend Device ID #10 (Alias: #2)     Type...........: GPU     Vendor.ID......: 32     Vendor.........: NVIDIA Corporation     Name...........: GeForce GTX 1080 Ti     Version........: OpenCL 1.2 CUDA     Processor(s)...: 28     Clock..........: 1582     Memory.........: 2794/11178 MB allocatable     OpenCL.Version.: OpenCL C 1.2     Driver.Version.: 418.67   Backend Device ID #11 (Alias: #3)     Type...........: GPU     Vendor.ID......: 32     Vendor.........: NVIDIA Corporation     Name...........: GeForce GTX 1080 Ti     Version........: OpenCL 1.2 CUDA     Processor(s)...: 28     Clock..........: 1582     Memory.........: 2794/11178 MB allocatable     OpenCL.Version.: OpenCL C 1.2     Driver.Version.: 418.67   Backend Device ID #12 (Alias: #4)     Type...........: GPU     Vendor.ID......: 32     Vendor.........: NVIDIA Corporation     Name...........: GeForce GTX 1080 Ti     Version........: OpenCL 1.2 CUDA     Processor(s)...: 28     Clock..........: 1582     Memory.........: 2794/11178 MB allocatable     OpenCL.Version.: OpenCL C 1.2     Driver.Version.: 418.67   Backend Device ID #13 (Alias: #5)     Type...........: GPU     Vendor.ID......: 32     Vendor.........: NVIDIA Corporation     Name...........: GeForce GTX 1080 Ti     Version........: OpenCL 1.2 CUDA     Processor(s)...: 28     Clock..........: 1582     Memory.........: 2794/11178 MB allocatable     OpenCL.Version.: OpenCL C 1.2     Driver.Version.: 418.67   Backend Device ID #14 (Alias: #6)     Type...........: GPU     Vendor.ID......: 32     Vendor.........: NVIDIA Corporation     Name...........: GeForce GTX 1080 Ti     Version........: OpenCL 1.2 CUDA     Processor(s)...: 28     Clock..........: 1582     Memory.........: 2794/11178 MB allocatable     OpenCL.Version.: OpenCL C 1.2     Driver.Version.: 418.67   Backend Device ID #15 (Alias: #7)     Type...........: GPU     Vendor.ID......: 32     Vendor.........: NVIDIA Corporation     Name...........: GeForce GTX 1080 Ti     Version........: OpenCL 1.2 CUDA     Processor(s)...: 28     Clock..........: 1582     Memory.........: 2794/11178 MB allocatable     OpenCL.Version.: OpenCL C 1.2     Driver.Version.: 418.67   Backend Device ID #16 (Alias: #8)     Type...........: GPU     Vendor.ID......: 32     Vendor.........: NVIDIA Corporation     Name...........: GeForce GTX 1080 Ti     Version........: OpenCL 1.2 CUDA     Processor(s)...: 28     Clock..........: 1582     Memory.........: 2794/11178 MB allocatable     OpenCL.Version.: OpenCL C 1.2     Driver.Version.: 418.67
Reply