How to use moderngpu library with multiple streams?

Suppose, I am using 5 threads and 5 Cuda Streams. Within the function flow for a single thread,I need to use the SortedSearch functionality of ModernGPU library. However, I am unable to create multiple contexts for each of the different streams. I am using “mgpu::CreateCudaDeviceAttachStream” method. However, I am getting segmentation fault. Only one thread is able to successfully use it. I am unable to create the cudaContext in the second thread.