Example #1
0
        private static void StartServer()
        {
            //fire up the CUDA_Core;
            CUDA_Core = new CUDAProcessor();
            CUDA_Core.Init();
            CUDA_Core.SetContext();

            //fire up the IPC server
            ipc_server = new SharedMemoryIPC();
        }
Example #2
0
        private void ThisAddIn_Startup(object sender, System.EventArgs e)
        {
            Application.Calculation = Excel.XlCalculation.xlCalculationManual;
            settings       = new GeneralSettings();
            dataSource     = settings.ExcelDataSource;
            CCInBackground = settings.CCInBackground;
            main_ribbon    = Globals.Ribbons.RibbonControl;

            //check if the Compute Core has been started
            //if (!EventWaitHandle.TryOpenExisting("ijiBearExcelIdeaCCUp", out CC_up))
            //{
            //    //bring up the compute core
            //    string hash = Tools.SHA512String("!hello server h4x0r!");
            //    ProcessStartInfo proc = new ProcessStartInfo(@"C:\Users\Bob\Documents\Visual Studio 2013\Projects\ExcelIdeaConsole\ExcelIdeaConsole\bin\Debug\ExcelIdea.exe", "server " + hash);
            //    proc.UseShellExecute = false;
            //    proc.WorkingDirectory = @"C:\Users\Bob\Documents\Visual Studio 2013\Projects\ExcelIdeaConsole\ExcelIdeaConsole\bin\Debug\";
            //    //Process.Start(settings.CCPath, "ipc " + hash);
            //    Process.Start(proc);
            //}

            smem_ipc = new SharedMemoryIPC();
        }