 #endif
 
 #if ENABLE_TBB_BACKEND
-tbb::task_scheduler_init tbb_scheduler_init(tbb::task_scheduler_init::deferred);
 static int num_tbb_threads = -1;
 
 template<>

        if (system == cuda)
        {
            cudaSetDevice(compute_device);
        }
#endif


        }
#endif

#if ENABLE_TBB_BACKEND
        // this object must stay alive on the stack for the scheduler to work
        // this means we have to declare it even for the GPU path
        tbb::task_scheduler_init init(tbb::task_scheduler_init::deferred);
        if (system == intel_tbb)
        {
            init.initialize(compute_device);
        }
#endif

        firepony_postprocess(*context);
    }

