Uses of Interface
net.bmahe.genetics4j.gpu.opencl.OpenCLExecutionContext
Packages that use OpenCLExecutionContext
Package
Description
-
Uses of OpenCLExecutionContext in net.bmahe.genetics4j.gpu
Fields in net.bmahe.genetics4j.gpu with type parameters of type OpenCLExecutionContextModifier and TypeFieldDescription(package private) final List<OpenCLExecutionContext> GPUFitnessEvaluator.clExecutionContexts -
Uses of OpenCLExecutionContext in net.bmahe.genetics4j.gpu.opencl
Classes in net.bmahe.genetics4j.gpu.opencl that implement OpenCLExecutionContextMethods in net.bmahe.genetics4j.gpu.opencl that return OpenCLExecutionContextModifier and TypeMethodDescriptionImmutableOpenCLExecutionContext.Builder.build()Builds a newOpenCLExecutionContext.static OpenCLExecutionContextImmutableOpenCLExecutionContext.copyOf(OpenCLExecutionContext instance) Creates an immutable copy of aOpenCLExecutionContextvalue.static OpenCLExecutionContextImmutableOpenCLExecutionContext.of(Platform platform, Device device, org.jocl.cl_context clContext, org.jocl.cl_command_queue clCommandQueue, org.jocl.cl_program clProgram, Map<String, ? extends org.jocl.cl_kernel> kernels, Map<String, ? extends KernelInfo> kernelInfos) Construct a new immutableOpenCLExecutionContextinstance.Methods in net.bmahe.genetics4j.gpu.opencl with parameters of type OpenCLExecutionContextModifier and TypeMethodDescriptionstatic OpenCLExecutionContextImmutableOpenCLExecutionContext.copyOf(OpenCLExecutionContext instance) Creates an immutable copy of aOpenCLExecutionContextvalue.ImmutableOpenCLExecutionContext.Builder.from(OpenCLExecutionContext instance) Fill a builder with attribute values from the providedOpenCLExecutionContextinstance. -
Uses of OpenCLExecutionContext in net.bmahe.genetics4j.gpu.spec.fitness
Methods in net.bmahe.genetics4j.gpu.spec.fitness with parameters of type OpenCLExecutionContextModifier and TypeMethodDescriptionvoidMultiStageFitness.afterAllEvaluations(OpenCLExecutionContext openCLExecutionContext, ExecutorService executorService) voidOpenCLFitness.afterAllEvaluations(OpenCLExecutionContext openCLExecutionContext, ExecutorService executorService) Per-device cleanup hook called for each OpenCL execution context at the end.voidSingleKernelFitness.afterAllEvaluations(OpenCLExecutionContext openCLExecutionContext, ExecutorService executorService) voidMultiStageFitness.afterEvaluation(OpenCLExecutionContext openCLExecutionContext, ExecutorService executorService, long generation, List<Genotype> genotypes) voidOpenCLFitness.afterEvaluation(OpenCLExecutionContext openCLExecutionContext, ExecutorService executorService, long generation, List<Genotype> genotypes) Per-device cleanup hook called after each device partition evaluation.voidSingleKernelFitness.afterEvaluation(OpenCLExecutionContext openCLExecutionContext, ExecutorService executorService, long generation, List<Genotype> genotypes) private voidMultiStageFitness.allocateLocalMemory(OpenCLExecutionContext openCLExecutionContext, StageDescriptor stageDescriptor, long generation, List<Genotype> genotypes, KernelExecutionContext kernelExecutionContext) voidMultiStageFitness.beforeAllEvaluations(OpenCLExecutionContext openCLExecutionContext, ExecutorService executorService) voidOpenCLFitness.beforeAllEvaluations(OpenCLExecutionContext openCLExecutionContext, ExecutorService executorService) Per-device initialization hook called for each OpenCL execution context.voidSingleKernelFitness.beforeAllEvaluations(OpenCLExecutionContext openCLExecutionContext, ExecutorService executorService) voidOpenCLFitness.beforeEvaluation(OpenCLExecutionContext openCLExecutionContext, ExecutorService executorService, long generation, List<Genotype> genotypes) Per-device preparation hook called before each device partition evaluation.voidSingleKernelFitness.beforeEvaluation(OpenCLExecutionContext openCLExecutionContext, ExecutorService executorService, long generation, List<Genotype> genotypes) FitnessExtractor.compute(OpenCLExecutionContext openCLExecutionContext, KernelExecutionContext kernelExecutionContext, ExecutorService executorService, long generation, List<Genotype> genotypes, ResultExtractor resultExtractor) intMultipleComputer.compute(OpenCLExecutionContext openCLExecutionContext, KernelExecutionContext kernelExecutionContext, long generation, List<Genotype> genotypes) MultiStageFitness.compute(OpenCLExecutionContext openCLExecutionContext, ExecutorService executorService, long generation, List<Genotype> genotypes) abstract CompletableFuture<List<T>> OpenCLFitness.compute(OpenCLExecutionContext openCLExecutionContext, ExecutorService executorService, long generation, List<Genotype> genotypes) Performs the actual fitness computation using OpenCL kernels on the GPU.SingleKernelFitness.compute(OpenCLExecutionContext openCLExecutionContext, ExecutorService executorService, long generation, List<Genotype> genotypes) float[]ResultExtractor.extractFloatArray(OpenCLExecutionContext openCLExecutionContext, int argumentIndex) Extracts floating-point data from OpenCL device memory as a float array.byte[]ResultExtractor.extractImageAsByteArray(OpenCLExecutionContext openCLExecutionContext, int argumentIndex, int width, int height, int numChannels, int channelSize) Extracts image data from OpenCL device memory as a byte array.int[]ResultExtractor.extractIntArray(OpenCLExecutionContext openCLExecutionContext, int argumentIndex) Extracts integer data from OpenCL device memory as an int array.long[]ResultExtractor.extractLongArray(OpenCLExecutionContext openCLExecutionContext, int argumentIndex) Extracts long integer data from OpenCL device memory as a long array.protected voidMultiStageFitness.loadData(OpenCLExecutionContext openCLExecutionContext, StageDescriptor stageDescriptor, Map<Integer, CLData> data, long generation, List<Genotype> genotypes) protected voidMultiStageFitness.prepareStaticData(OpenCLExecutionContext openCLExecutionContext, StageDescriptor stageDescriptor) -
Uses of OpenCLExecutionContext in net.bmahe.genetics4j.gpu.spec.fitness.cldata
Methods in net.bmahe.genetics4j.gpu.spec.fitness.cldata with parameters of type OpenCLExecutionContextModifier and TypeMethodDescriptionDataSupplier.get(OpenCLExecutionContext openCLExecutionContext, long generation, List<Genotype> genotypes) DataLoader.load(OpenCLExecutionContext openCLExecutionContext, long generation, List<Genotype> genotypes) Loads genotype data into OpenCL device memory for GPU processing.longLocalMemoryAllocator.load(OpenCLExecutionContext openCLExecutionContext, KernelExecutionContext kernelExecutionContext, long generation, List<Genotype> genotypes) ResultAllocator.load(OpenCLExecutionContext openCLExecutionContext, KernelExecutionContext kernelExecutionContext, long generation, List<Genotype> genotypes) StaticDataLoader.load(OpenCLExecutionContext openCLExecutionContext) -
Uses of OpenCLExecutionContext in net.bmahe.genetics4j.gpu.spec.fitness.kernelcontext
Methods in net.bmahe.genetics4j.gpu.spec.fitness.kernelcontext with parameters of type OpenCLExecutionContextModifier and TypeMethodDescriptionKernelExecutionContextComputer.compute(OpenCLExecutionContext openCLExecutionContext, String kernelName, long generation, List<Genotype> genotypes)