コード例 #1
0
ファイル: Vector.cs プロジェクト: trmcnealy/Kokkos.NET
        static Vector()
        {
            dataType = DataType <TDataType> .GetKind();

            executionSpace     = new TExecutionSpace();
            executionSpaceType = ExecutionSpace <TExecutionSpace> .GetKind();

            VectorUtilities <TDataType, TExecutionSpace> .Load();
        }
コード例 #2
0
ファイル: NativeArray.cs プロジェクト: trmcnealy/Kokkos.NET
        static NativeArray()
        {
            //if(!KokkosLibrary.IsInitialized())
            //{
            //    KokkosLibraryException.Throw("Kokkos Library is not initialized. Use ParallelProcessor.Initialize/Shutdown in the main routine/thread.");
            //}

            executionSpace = ExecutionSpace <TExecutionSpace> .GetKind();

            elementSize = sizeof(T);
        }
コード例 #3
0
 static SpatialMethods()
 {
     executionSpace = ExecutionSpace <TExecutionSpace> .GetKind();
 }
コード例 #4
0
 static InterpolationMethods()
 {
     executionSpace = ExecutionSpace <TExecutionSpace> .GetKind();
 }
コード例 #5
0
ファイル: CsvReader.cs プロジェクト: trmcnealy/Kokkos.NET
 static CsvReader()
 {
     executionSpace = ExecutionSpace <TExecutionSpace> .GetKind();
 }
コード例 #6
0
 static InterprocessMemory()
 {
     executionSpace     = new TExecutionSpace();
     executionSpaceType = ExecutionSpace <TExecutionSpace> .GetKind();
 }
コード例 #7
0
 static NativeString()
 {
     executionSpaceType = ExecutionSpace <TExecutionSpace> .GetKind();
 }