All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.lwjgl.opencl.INTELDevicePartitionByNames Maven / Gradle / Ivy

Go to download

An open, royalty-free standard for cross-platform, parallel programming of diverse processors found in personal computers, servers, mobile devices and embedded platforms.

There is a newer version: 3.3.4
Show newest version
/*
 * Copyright LWJGL. All rights reserved.
 * License terms: https://www.lwjgl.org/license
 * MACHINE GENERATED FILE, DO NOT EDIT
 */
package org.lwjgl.opencl;

/**
 * Native bindings to the intel_device_partition_by_names extension.
 * 
 * 

This extension allows the user to create sub-devices containing specific compute units. {@link #CL_DEVICE_PARTITION_BY_NAMES_INTEL DEVICE_PARTITION_BY_NAMES_INTEL} is a * {@code cl_device_partition_property} that is followed by a list of compute unit names, teminated by {@link #CL_PARTITION_BY_NAMES_LIST_END_INTEL PARTITION_BY_NAMES_LIST_END_INTEL}. * Compute unit names are integers that count up from zero to the number of compute units minus one. Only one sub-device may be created at a time with this * selector. An individual compute unit name may not appear more than once in the sub-device description. A sub-device created with * {@link #CL_DEVICE_PARTITION_BY_NAMES_INTEL DEVICE_PARTITION_BY_NAMES_INTEL} cannot be further sub-divided. A sub-device created with another partitioning mode cannot be further * sub-divided by {@link #CL_DEVICE_PARTITION_BY_NAMES_INTEL DEVICE_PARTITION_BY_NAMES_INTEL}.

* *

Example: To create a three compute unit sub-device using compute units, [ 0, 1, 3 ], pass:

* *

[ {@link #CL_DEVICE_PARTITION_BY_NAMES_INTEL DEVICE_PARTITION_BY_NAMES_INTEL}, 0, 1, 3, {@link #CL_PARTITION_BY_NAMES_LIST_END_INTEL PARTITION_BY_NAMES_LIST_END_INTEL}, 0 ]

* *

The meaning of these numbers are, in order:

* *
    *
  • 0 the name of the first compute unit in the sub-device
  • *
  • 1 the name of the second compute unit in the sub-device
  • *
  • 3 the name of the third compute unit in the sub-device
  • *
*/ public final class INTELDevicePartitionByNames { /** Accepted in the {@code properties} argument of {@link CL12#clCreateSubDevices CreateSubDevices}. */ public static final int CL_DEVICE_PARTITION_BY_NAMES_INTEL = 0x4052; /** The name list terminator. */ public static final int CL_PARTITION_BY_NAMES_LIST_END_INTEL = -1; private INTELDevicePartitionByNames() {} }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy