提交 8fe79738 编写于 作者: R Roman Donchenko 提交者: OpenCV Buildbot

Merge pull request #2056 from asmorkalov:java_core_cuda_wrappers

此差异已折叠。
package org.opencv.gpu;
import java.lang.String;
// C++: class DeviceInfo
//javadoc: DeviceInfo
public class DeviceInfo {
protected final long nativeObj;
protected DeviceInfo(long addr) { nativeObj = addr; }
//
// C++: DeviceInfo::DeviceInfo()
//
//javadoc: DeviceInfo::DeviceInfo()
public DeviceInfo()
{
nativeObj = DeviceInfo_0();
return;
}
//
// C++: DeviceInfo::DeviceInfo(int device_id)
//
//javadoc: DeviceInfo::DeviceInfo(device_id)
public DeviceInfo(int device_id)
{
nativeObj = DeviceInfo_1(device_id);
return;
}
//
// C++: int DeviceInfo::deviceID()
//
//javadoc: DeviceInfo::deviceID()
public int deviceID()
{
int retVal = deviceID_0(nativeObj);
return retVal;
}
//
// C++: size_t DeviceInfo::freeMemory()
//
//javadoc: DeviceInfo::freeMemory()
public long freeMemory()
{
long retVal = freeMemory_0(nativeObj);
return retVal;
}
//
// C++: bool DeviceInfo::isCompatible()
//
//javadoc: DeviceInfo::isCompatible()
public boolean isCompatible()
{
boolean retVal = isCompatible_0(nativeObj);
return retVal;
}
//
// C++: int DeviceInfo::majorVersion()
//
//javadoc: DeviceInfo::majorVersion()
public int majorVersion()
{
int retVal = majorVersion_0(nativeObj);
return retVal;
}
//
// C++: int DeviceInfo::minorVersion()
//
//javadoc: DeviceInfo::minorVersion()
public int minorVersion()
{
int retVal = minorVersion_0(nativeObj);
return retVal;
}
//
// C++: int DeviceInfo::multiProcessorCount()
//
//javadoc: DeviceInfo::multiProcessorCount()
public int multiProcessorCount()
{
int retVal = multiProcessorCount_0(nativeObj);
return retVal;
}
//
// C++: string DeviceInfo::name()
//
//javadoc: DeviceInfo::name()
public String name()
{
String retVal = name_0(nativeObj);
return retVal;
}
//
// C++: void DeviceInfo::queryMemory(size_t& totalMemory, size_t& freeMemory)
//
//javadoc: DeviceInfo::queryMemory(totalMemory, freeMemory)
public void queryMemory(long totalMemory, long freeMemory)
{
double[] totalMemory_out = new double[1];
double[] freeMemory_out = new double[1];
queryMemory_0(nativeObj, totalMemory_out, freeMemory_out);
totalMemory = (long)totalMemory_out[0];
freeMemory = (long)freeMemory_out[0];
}
//
// C++: size_t DeviceInfo::sharedMemPerBlock()
//
//javadoc: DeviceInfo::sharedMemPerBlock()
public long sharedMemPerBlock()
{
long retVal = sharedMemPerBlock_0(nativeObj);
return retVal;
}
//
// C++: bool DeviceInfo::supports(int feature_set)
//
//javadoc: DeviceInfo::supports(feature_set)
public boolean supports(int feature_set)
{
boolean retVal = supports_0(nativeObj, feature_set);
return retVal;
}
//
// C++: size_t DeviceInfo::totalMemory()
//
//javadoc: DeviceInfo::totalMemory()
public long totalMemory()
{
long retVal = totalMemory_0(nativeObj);
return retVal;
}
@Override
protected void finalize() throws Throwable {
delete(nativeObj);
}
// C++: DeviceInfo::DeviceInfo()
private static native long DeviceInfo_0();
// C++: DeviceInfo::DeviceInfo(int device_id)
private static native long DeviceInfo_1(int device_id);
// C++: int DeviceInfo::deviceID()
private static native int deviceID_0(long nativeObj);
// C++: size_t DeviceInfo::freeMemory()
private static native long freeMemory_0(long nativeObj);
// C++: bool DeviceInfo::isCompatible()
private static native boolean isCompatible_0(long nativeObj);
// C++: int DeviceInfo::majorVersion()
private static native int majorVersion_0(long nativeObj);
// C++: int DeviceInfo::minorVersion()
private static native int minorVersion_0(long nativeObj);
// C++: int DeviceInfo::multiProcessorCount()
private static native int multiProcessorCount_0(long nativeObj);
// C++: string DeviceInfo::name()
private static native String name_0(long nativeObj);
// C++: void DeviceInfo::queryMemory(size_t& totalMemory, size_t& freeMemory)
private static native void queryMemory_0(long nativeObj, double[] totalMemory_out, double[] freeMemory_out);
// C++: size_t DeviceInfo::sharedMemPerBlock()
private static native long sharedMemPerBlock_0(long nativeObj);
// C++: bool DeviceInfo::supports(int feature_set)
private static native boolean supports_0(long nativeObj, int feature_set);
// C++: size_t DeviceInfo::totalMemory()
private static native long totalMemory_0(long nativeObj);
// native support for java finalize()
private static native void delete(long nativeObj);
}
package org.opencv.gpu;
public class Gpu {
public static final int
FEATURE_SET_COMPUTE_10 = 10,
FEATURE_SET_COMPUTE_11 = 11,
FEATURE_SET_COMPUTE_12 = 12,
FEATURE_SET_COMPUTE_13 = 13,
FEATURE_SET_COMPUTE_20 = 20,
FEATURE_SET_COMPUTE_21 = 21,
FEATURE_SET_COMPUTE_30 = 30,
FEATURE_SET_COMPUTE_35 = 35,
GLOBAL_ATOMICS = FEATURE_SET_COMPUTE_11,
SHARED_ATOMICS = FEATURE_SET_COMPUTE_12,
NATIVE_DOUBLE = FEATURE_SET_COMPUTE_13,
WARP_SHUFFLE_FUNCTIONS = FEATURE_SET_COMPUTE_30,
DYNAMIC_PARALLELISM = FEATURE_SET_COMPUTE_35;
//
// C++: bool deviceSupports(int feature_set)
//
//javadoc: deviceSupports(feature_set)
public static boolean deviceSupports(int feature_set)
{
boolean retVal = deviceSupports_0(feature_set);
return retVal;
}
//
// C++: int getCudaEnabledDeviceCount()
//
//javadoc: getCudaEnabledDeviceCount()
public static int getCudaEnabledDeviceCount()
{
int retVal = getCudaEnabledDeviceCount_0();
return retVal;
}
//
// C++: int getDevice()
//
//javadoc: getDevice()
public static int getDevice()
{
int retVal = getDevice_0();
return retVal;
}
//
// C++: void printCudaDeviceInfo(int device)
//
//javadoc: printCudaDeviceInfo(device)
public static void printCudaDeviceInfo(int device)
{
printCudaDeviceInfo_0(device);
return;
}
//
// C++: void printShortCudaDeviceInfo(int device)
//
//javadoc: printShortCudaDeviceInfo(device)
public static void printShortCudaDeviceInfo(int device)
{
printShortCudaDeviceInfo_0(device);
return;
}
//
// C++: void resetDevice()
//
//javadoc: resetDevice()
public static void resetDevice()
{
resetDevice_0();
return;
}
//
// C++: void setDevice(int device)
//
//javadoc: setDevice(device)
public static void setDevice(int device)
{
setDevice_0(device);
return;
}
// C++: bool deviceSupports(int feature_set)
private static native boolean deviceSupports_0(int feature_set);
// C++: int getCudaEnabledDeviceCount()
private static native int getCudaEnabledDeviceCount_0();
// C++: int getDevice()
private static native int getDevice_0();
// C++: void printCudaDeviceInfo(int device)
private static native void printCudaDeviceInfo_0(int device);
// C++: void printShortCudaDeviceInfo(int device)
private static native void printShortCudaDeviceInfo_0(int device);
// C++: void resetDevice()
private static native void resetDevice_0();
// C++: void setDevice(int device)
private static native void setDevice_0(int device);
}
package org.opencv.gpu;
// C++: class TargetArchs
//javadoc: TargetArchs
public class TargetArchs {
protected final long nativeObj;
protected TargetArchs(long addr) { nativeObj = addr; }
//
// C++: static bool TargetArchs::builtWith(int feature_set)
//
//javadoc: TargetArchs::builtWith(feature_set)
public static boolean builtWith(int feature_set)
{
boolean retVal = builtWith_0(feature_set);
return retVal;
}
//
// C++: static bool TargetArchs::has(int major, int minor)
//
//javadoc: TargetArchs::has(major, minor)
public static boolean has(int major, int minor)
{
boolean retVal = has_0(major, minor);
return retVal;
}
//
// C++: static bool TargetArchs::hasBin(int major, int minor)
//
//javadoc: TargetArchs::hasBin(major, minor)
public static boolean hasBin(int major, int minor)
{
boolean retVal = hasBin_0(major, minor);
return retVal;
}
//
// C++: static bool TargetArchs::hasEqualOrGreater(int major, int minor)
//
//javadoc: TargetArchs::hasEqualOrGreater(major, minor)
public static boolean hasEqualOrGreater(int major, int minor)
{
boolean retVal = hasEqualOrGreater_0(major, minor);
return retVal;
}
//
// C++: static bool TargetArchs::hasEqualOrGreaterBin(int major, int minor)
//
//javadoc: TargetArchs::hasEqualOrGreaterBin(major, minor)
public static boolean hasEqualOrGreaterBin(int major, int minor)
{
boolean retVal = hasEqualOrGreaterBin_0(major, minor);
return retVal;
}
//
// C++: static bool TargetArchs::hasEqualOrGreaterPtx(int major, int minor)
//
//javadoc: TargetArchs::hasEqualOrGreaterPtx(major, minor)
public static boolean hasEqualOrGreaterPtx(int major, int minor)
{
boolean retVal = hasEqualOrGreaterPtx_0(major, minor);
return retVal;
}
//
// C++: static bool TargetArchs::hasEqualOrLessPtx(int major, int minor)
//
//javadoc: TargetArchs::hasEqualOrLessPtx(major, minor)
public static boolean hasEqualOrLessPtx(int major, int minor)
{
boolean retVal = hasEqualOrLessPtx_0(major, minor);
return retVal;
}
//
// C++: static bool TargetArchs::hasPtx(int major, int minor)
//
//javadoc: TargetArchs::hasPtx(major, minor)
public static boolean hasPtx(int major, int minor)
{
boolean retVal = hasPtx_0(major, minor);
return retVal;
}
@Override
protected void finalize() throws Throwable {
delete(nativeObj);
}
// C++: static bool TargetArchs::builtWith(int feature_set)
private static native boolean builtWith_0(int feature_set);
// C++: static bool TargetArchs::has(int major, int minor)
private static native boolean has_0(int major, int minor);
// C++: static bool TargetArchs::hasBin(int major, int minor)
private static native boolean hasBin_0(int major, int minor);
// C++: static bool TargetArchs::hasEqualOrGreater(int major, int minor)
private static native boolean hasEqualOrGreater_0(int major, int minor);
// C++: static bool TargetArchs::hasEqualOrGreaterBin(int major, int minor)
private static native boolean hasEqualOrGreaterBin_0(int major, int minor);
// C++: static bool TargetArchs::hasEqualOrGreaterPtx(int major, int minor)
private static native boolean hasEqualOrGreaterPtx_0(int major, int minor);
// C++: static bool TargetArchs::hasEqualOrLessPtx(int major, int minor)
private static native boolean hasEqualOrLessPtx_0(int major, int minor);
// C++: static bool TargetArchs::hasPtx(int major, int minor)
private static native boolean hasPtx_0(int major, int minor);
// native support for java finalize()
private static native void delete(long nativeObj);
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册