You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/CSharp/OpenCL/Tutorial001.SimpleKernel/Program.cs
+3-16Lines changed: 3 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,4 @@
1
-
// TODO: Exanite: This example is easier to read as a Program class. We should probably do the same for the other examples.
2
-
//
3
-
// TODO: Exanite: I plan to rename these "tutorials" to be "smoke tests" and to reserve tutorials to be for examples properly designed for educational purposes.
4
-
// TODO: Exanite: The existing tutorials just test if the API works and I don't want to misrepresent that.
5
-
6
-
usingSystem.Runtime.CompilerServices;
1
+
usingSystem.Runtime.CompilerServices;
7
2
usingSilk.NET.OpenCL;
8
3
9
4
internalunsafeclassProgram
@@ -69,14 +64,8 @@ __kernel void VectorAdd(__global int* c, __global int* a, __global int* b)
69
64
70
65
publicstaticintMain(string[]args)
71
66
{
72
-
// TODO: Exanite: The todos in this file represent issues that I found or thoughts that I had while working on this smoke test.
73
-
// TODO: Exanite: These might not represent actual problems, but I want to document these so we can address them later.
74
-
75
67
// Load API
76
-
// TODO: These todos apply to all Silk bindings.
77
-
// TODO: Consider making INativeContext public. It's nice for debugging.
78
-
// TODO: Consider returning the concrete class instead of the interface. Having to cast to access Cl.CurrentPlatform is annoying.
79
-
// TODO: I liked how INativeContext only required the function name in Silk 2. Silk 3 is currently `LoadFunction(functionName, libraryNameHint)`.
68
+
// TODO: Expose Cl.CurrentPlatform through the interface.
80
69
varcl=Cl.Create();// TODO: This should be disposable
81
70
82
71
// Initialize host data
@@ -93,9 +82,8 @@ public static int Main(string[] args)
93
82
}
94
83
95
84
// Select platform and device
96
-
// TODO: I'm going to prefer the DSL types whenever possible
97
85
// TODO: Return type should be ErrorCodes
98
-
varplatform=default(PlatformIdHandle);// TODO: Using the DSL types requires us to initialize the variable first, which is annoying
0 commit comments