Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8364337
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T12:24:30+00:00 2026-06-09T12:24:30+00:00

I am running two host threads that both use the same texture that is

  • 0

I am running two host threads that both use the same texture that is shared between their referenced OpenGL-contexts. I thought that each of these threads has to run cudaGLSetGLDevice at the very first step to:

  1. bind device to current thread
  2. bind device to currently made OpenGL-context

Note that thread 1 is still working when thread 2 calls cudaGLSetGLDevice. That would include that neither cudaDeviceReset has been called from thread 1 nor its OpenGL-context has been set to be done afterwards.

What I get as error-output is:

“cannot set while device is active in this process”

What can I do or what am I doing wrong?

My system consists of one NVIDIA GTX 550Ti and I’m using boost::thread.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T12:24:31+00:00Added an answer on June 9, 2026 at 12:24 pm

    The solution is to switch from runtime- to driver-api that does NOT hide context-management. Then we can create a CUDA-context for each host-thread and everything is fine, even with OpenGL-interoperability 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here I am running two instance of same program in two different terminals. The
I have transactional replication running between two databases. I fear they have fallen slightly
I am developing a web app that will have two parts running on two
I got two projects running, both written in PHP. Now I want to merge
I am running Windows Server 2003 host OS. On that I have Windows Virtual
Is there a reliable, cross-platform way to do IPC (between two JVMs running on
I created a replication between two computers (a laptop I use to add new
We have a Windows Server 2003 machine running IIS6.0 that hosts two different websites.
I have a linux running on VMWare, and I use gdb in the host
I have an issue where we are running two systems on the same EC2

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.