Thanks Bruce,
That app works and shows that both the FrontEnd and a cuda program both can access the GPU at the same time without crashing the FrontEnd.
The question remains whether I can specify that the FrontEnd use a specific graphics card.
Many thanks, Craig