EXP0001: Experimental OpenCL Implementation
Cause
This indicates that the OpenCL implementation is in the experimental phase and may change drastically.
Example
The following violates the rule:
builder.Services.AddSingleton<IComputeService, OpenCLService>(provider =>
{
var logger = provider.GetRequiredService<ILogger<OpenCLService>>();
return new OpenCLService(
logger,
OpenCLService.Vendors.NVIDIA,
x => x.Name == "NVIDIA GeForce RTX 2080 Ti");
});
To use the class, suppress the warning with
#pragma warning disable EXP0001