From 59af091904856fba227566606c75cb3b2339a101 Mon Sep 17 00:00:00 2001 From: Adam C Date: Thu, 15 Oct 2020 14:04:10 -0700 Subject: [PATCH] Remove samples; unclear how they operated --- OpenCL.NetCore.sln | 22 ------------- Samples/Kernel.cl | 5 --- Samples/Program.cs | 73 ------------------------------------------ Samples/Samples.csproj | 12 ------- 4 files changed, 112 deletions(-) delete mode 100644 Samples/Kernel.cl delete mode 100644 Samples/Program.cs delete mode 100644 Samples/Samples.csproj diff --git a/OpenCL.NetCore.sln b/OpenCL.NetCore.sln index 60f26b6..11c3deb 100644 --- a/OpenCL.NetCore.sln +++ b/OpenCL.NetCore.sln @@ -7,8 +7,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "OpenCL.NetCore.Tests", "Ope EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "OpenCL.NetCore", "OpenCL.NetCore\OpenCL.NetCore.csproj", "{46714EC3-385B-4BD7-9818-2BD3DB0A31E6}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Samples", "Samples\Samples.csproj", "{BEC38063-3CDC-4076-AE2A-374529EB8AE2}" -EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -63,26 +61,6 @@ Global {46714EC3-385B-4BD7-9818-2BD3DB0A31E6}.Release|x64.Build.0 = Release|Any CPU {46714EC3-385B-4BD7-9818-2BD3DB0A31E6}.Release|x86.ActiveCfg = Release|Any CPU {46714EC3-385B-4BD7-9818-2BD3DB0A31E6}.Release|x86.Build.0 = Release|Any CPU - {BEC38063-3CDC-4076-AE2A-374529EB8AE2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {BEC38063-3CDC-4076-AE2A-374529EB8AE2}.Debug|Any CPU.Build.0 = Debug|Any CPU - {BEC38063-3CDC-4076-AE2A-374529EB8AE2}.Debug|ARM.ActiveCfg = Debug|Any CPU - {BEC38063-3CDC-4076-AE2A-374529EB8AE2}.Debug|ARM.Build.0 = Debug|Any CPU - {BEC38063-3CDC-4076-AE2A-374529EB8AE2}.Debug|ARM64.ActiveCfg = Debug|Any CPU - {BEC38063-3CDC-4076-AE2A-374529EB8AE2}.Debug|ARM64.Build.0 = Debug|Any CPU - {BEC38063-3CDC-4076-AE2A-374529EB8AE2}.Debug|x64.ActiveCfg = Debug|Any CPU - {BEC38063-3CDC-4076-AE2A-374529EB8AE2}.Debug|x64.Build.0 = Debug|Any CPU - {BEC38063-3CDC-4076-AE2A-374529EB8AE2}.Debug|x86.ActiveCfg = Debug|Any CPU - {BEC38063-3CDC-4076-AE2A-374529EB8AE2}.Debug|x86.Build.0 = Debug|Any CPU - {BEC38063-3CDC-4076-AE2A-374529EB8AE2}.Release|Any CPU.ActiveCfg = Release|Any CPU - {BEC38063-3CDC-4076-AE2A-374529EB8AE2}.Release|Any CPU.Build.0 = Release|Any CPU - {BEC38063-3CDC-4076-AE2A-374529EB8AE2}.Release|ARM.ActiveCfg = Release|Any CPU - {BEC38063-3CDC-4076-AE2A-374529EB8AE2}.Release|ARM.Build.0 = Release|Any CPU - {BEC38063-3CDC-4076-AE2A-374529EB8AE2}.Release|ARM64.ActiveCfg = Release|Any CPU - {BEC38063-3CDC-4076-AE2A-374529EB8AE2}.Release|ARM64.Build.0 = Release|Any CPU - {BEC38063-3CDC-4076-AE2A-374529EB8AE2}.Release|x64.ActiveCfg = Release|Any CPU - {BEC38063-3CDC-4076-AE2A-374529EB8AE2}.Release|x64.Build.0 = Release|Any CPU - {BEC38063-3CDC-4076-AE2A-374529EB8AE2}.Release|x86.ActiveCfg = Release|Any CPU - {BEC38063-3CDC-4076-AE2A-374529EB8AE2}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/Samples/Kernel.cl b/Samples/Kernel.cl deleted file mode 100644 index 50d9629..0000000 --- a/Samples/Kernel.cl +++ /dev/null @@ -1,5 +0,0 @@ -__kernel void doSomething(__global float* a, __global float* b, __local uchar3* local, float scale) -{ - int id = get_global_id(0); - b[id] = a[id] * scale; -} \ No newline at end of file diff --git a/Samples/Program.cs b/Samples/Program.cs deleted file mode 100644 index 0afaa00..0000000 --- a/Samples/Program.cs +++ /dev/null @@ -1,73 +0,0 @@ -#region License and Copyright Notice -// Copyright (c) 2010 Ananth B. -// All rights reserved. -// -// The contents of this file are made available under the terms of the -// Eclipse Public License v1.0 (the "License") which accompanies this -// distribution, and is available at the following URL: -// http://www.opensource.org/licenses/eclipse-1.0.php -// -// Software distributed under the License is distributed on an "AS IS" basis, -// WITHOUT WARRANTY OF ANY KIND, either expressed or implied. See the License for -// the specific language governing rights and limitations under the License. -// -// By using this software in any fashion, you are agreeing to be bound by the -// terms of the License. -#endregion - -using System; -using System.Diagnostics; -using System.Linq; - -using OpenCL.NetCore.Extensions; -using OpenCL.NetCore; - -namespace Samples -{ - public struct Test - { - } - - [DebuggerTypeProxy(typeof(MyTypeProxy<>))] - struct MyType - { - } - - class MyTypeProxy - { - MyType type; - public MyTypeProxy(MyType type) - { - this.type = type; - } - public string Hash - { - get { return type.GetHashCode().ToString(); } - } - } - - class Program - { - private const int ArrayLength = 1024; - - static void Main(string[] args) - { - var env = "*Intel*".CreateCLEnvironment(); - - var random = new Random(); - var a = env.Context.CreateBuffer((from i in Enumerable.Range(0, ArrayLength) select (float)random.NextDouble()).ToArray(), - MemFlags.ReadOnly); - var b = env.Context.CreateBuffer((from i in Enumerable.Range(0, ArrayLength) select (float)random.NextDouble()).ToArray(), - MemFlags.WriteOnly); - - var kernel = new Kernel.doSomething(env.Context); - kernel.Compile(string.Format("-cl-opt-disable -g -s \"{0}\"", Kernel.Kernel_Source.OriginalKernelPath)); - - var kernelRun = kernel.Run(env.CommandQueues[0], a, b, 100, 10f, ArrayLength); - var results = new float[ArrayLength]; - env.CommandQueues[0].ReadFromBuffer(b, results, waitFor: kernelRun); - - env.Dispose(); - } - } -} \ No newline at end of file diff --git a/Samples/Samples.csproj b/Samples/Samples.csproj deleted file mode 100644 index 405318d..0000000 --- a/Samples/Samples.csproj +++ /dev/null @@ -1,12 +0,0 @@ - - - - Exe - netcoreapp3.1 - - - - - - -