-
Notifications
You must be signed in to change notification settings - Fork 747
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add presets for the CUPTI module of CUDA (pull #1531)
- Loading branch information
1 parent
33a8133
commit a8de26c
Showing
78 changed files
with
15,322 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
cuda/src/gen/java/org/bytedeco/cuda/cupti/CUpti_Activity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
// Targeted by JavaCPP version 1.5.11-SNAPSHOT: DO NOT EDIT THIS FILE | ||
|
||
package org.bytedeco.cuda.cupti; | ||
|
||
import java.nio.*; | ||
import org.bytedeco.javacpp.*; | ||
import org.bytedeco.javacpp.annotation.*; | ||
|
||
import static org.bytedeco.javacpp.presets.javacpp.*; | ||
import org.bytedeco.cuda.cudart.*; | ||
import static org.bytedeco.cuda.global.cudart.*; | ||
|
||
import static org.bytedeco.cuda.global.cupti.*; | ||
|
||
|
||
/** | ||
* \brief The base activity record. | ||
* | ||
* The activity API uses a CUpti_Activity as a generic representation | ||
* for any activity. The 'kind' field is used to determine the | ||
* specific activity kind, and from that the CUpti_Activity object can | ||
* be cast to the specific activity record type appropriate for that kind. | ||
* | ||
* Note that all activity record types are padded and aligned to | ||
* ensure that each member of the record is naturally aligned. | ||
* | ||
* @see CUpti_ActivityKind | ||
*/ | ||
@Properties(inherit = org.bytedeco.cuda.presets.cupti.class) | ||
public class CUpti_Activity extends Pointer { | ||
static { Loader.load(); } | ||
/** Default native constructor. */ | ||
public CUpti_Activity() { super((Pointer)null); allocate(); } | ||
/** Native array allocator. Access with {@link Pointer#position(long)}. */ | ||
public CUpti_Activity(long size) { super((Pointer)null); allocateArray(size); } | ||
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ | ||
public CUpti_Activity(Pointer p) { super(p); } | ||
private native void allocate(); | ||
private native void allocateArray(long size); | ||
@Override public CUpti_Activity position(long position) { | ||
return (CUpti_Activity)super.position(position); | ||
} | ||
@Override public CUpti_Activity getPointer(long i) { | ||
return new CUpti_Activity((Pointer)this).offsetAddress(i); | ||
} | ||
|
||
/** | ||
* The kind of this activity. | ||
*/ | ||
public native @Cast("CUpti_ActivityKind") int kind(); public native CUpti_Activity kind(int setter); | ||
} |
92 changes: 92 additions & 0 deletions
92
cuda/src/gen/java/org/bytedeco/cuda/cupti/CUpti_ActivityAPI.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
// Targeted by JavaCPP version 1.5.11-SNAPSHOT: DO NOT EDIT THIS FILE | ||
|
||
package org.bytedeco.cuda.cupti; | ||
|
||
import java.nio.*; | ||
import org.bytedeco.javacpp.*; | ||
import org.bytedeco.javacpp.annotation.*; | ||
|
||
import static org.bytedeco.javacpp.presets.javacpp.*; | ||
import org.bytedeco.cuda.cudart.*; | ||
import static org.bytedeco.cuda.global.cudart.*; | ||
|
||
import static org.bytedeco.cuda.global.cupti.*; | ||
|
||
|
||
/** | ||
* \brief The activity record for a driver or runtime API invocation. | ||
* | ||
* This activity record represents an invocation of a driver or | ||
* runtime API (CUPTI_ACTIVITY_KIND_DRIVER and | ||
* CUPTI_ACTIVITY_KIND_RUNTIME). | ||
*/ | ||
@Properties(inherit = org.bytedeco.cuda.presets.cupti.class) | ||
public class CUpti_ActivityAPI extends Pointer { | ||
static { Loader.load(); } | ||
/** Default native constructor. */ | ||
public CUpti_ActivityAPI() { super((Pointer)null); allocate(); } | ||
/** Native array allocator. Access with {@link Pointer#position(long)}. */ | ||
public CUpti_ActivityAPI(long size) { super((Pointer)null); allocateArray(size); } | ||
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ | ||
public CUpti_ActivityAPI(Pointer p) { super(p); } | ||
private native void allocate(); | ||
private native void allocateArray(long size); | ||
@Override public CUpti_ActivityAPI position(long position) { | ||
return (CUpti_ActivityAPI)super.position(position); | ||
} | ||
@Override public CUpti_ActivityAPI getPointer(long i) { | ||
return new CUpti_ActivityAPI((Pointer)this).offsetAddress(i); | ||
} | ||
|
||
/** | ||
* The activity record kind, must be CUPTI_ACTIVITY_KIND_DRIVER, | ||
* CUPTI_ACTIVITY_KIND_RUNTIME, or CUPTI_ACTIVITY_KIND_INTERNAL_LAUNCH_API. | ||
*/ | ||
public native @Cast("CUpti_ActivityKind") int kind(); public native CUpti_ActivityAPI kind(int setter); | ||
|
||
/** | ||
* The ID of the driver or runtime function. | ||
*/ | ||
public native @Cast("CUpti_CallbackId") int cbid(); public native CUpti_ActivityAPI cbid(int setter); | ||
|
||
/** | ||
* The start timestamp for the function, in ns. A value of 0 for | ||
* both the start and end timestamps indicates that timestamp | ||
* information could not be collected for the function. | ||
*/ | ||
public native @Cast("uint64_t") long start(); public native CUpti_ActivityAPI start(long setter); | ||
|
||
/** | ||
* The end timestamp for the function, in ns. A value of 0 for both | ||
* the start and end timestamps indicates that timestamp information | ||
* could not be collected for the function. | ||
*/ | ||
public native @Cast("uint64_t") long end(); public native CUpti_ActivityAPI end(long setter); | ||
|
||
/** | ||
* The ID of the process where the driver or runtime CUDA function | ||
* is executing. | ||
*/ | ||
public native @Cast("uint32_t") int processId(); public native CUpti_ActivityAPI processId(int setter); | ||
|
||
/** | ||
* The ID of the thread where the driver or runtime CUDA function is | ||
* executing. | ||
*/ | ||
public native @Cast("uint32_t") int threadId(); public native CUpti_ActivityAPI threadId(int setter); | ||
|
||
/** | ||
* The correlation ID of the driver or runtime CUDA function. Each | ||
* function invocation is assigned a unique correlation ID that is | ||
* identical to the correlation ID in the memcpy, memset, or kernel | ||
* activity record that is associated with this function. | ||
*/ | ||
public native @Cast("uint32_t") int correlationId(); public native CUpti_ActivityAPI correlationId(int setter); | ||
|
||
/** | ||
* The return value for the function. For a CUDA driver function | ||
* with will be a CUresult value, and for a CUDA runtime function | ||
* this will be a cudaError_t value. | ||
*/ | ||
public native @Cast("uint32_t") int returnValue(); public native CUpti_ActivityAPI returnValue(int setter); | ||
} |
54 changes: 54 additions & 0 deletions
54
cuda/src/gen/java/org/bytedeco/cuda/cupti/CUpti_ActivityAutoBoostState.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
// Targeted by JavaCPP version 1.5.11-SNAPSHOT: DO NOT EDIT THIS FILE | ||
|
||
package org.bytedeco.cuda.cupti; | ||
|
||
import java.nio.*; | ||
import org.bytedeco.javacpp.*; | ||
import org.bytedeco.javacpp.annotation.*; | ||
|
||
import static org.bytedeco.javacpp.presets.javacpp.*; | ||
import org.bytedeco.cuda.cudart.*; | ||
import static org.bytedeco.cuda.global.cudart.*; | ||
|
||
import static org.bytedeco.cuda.global.cupti.*; | ||
|
||
|
||
/** | ||
* \brief Device auto boost state structure | ||
* | ||
* This structure defines auto boost state for a device. | ||
* See function \ref cuptiGetAutoBoostState | ||
*/ | ||
@Properties(inherit = org.bytedeco.cuda.presets.cupti.class) | ||
public class CUpti_ActivityAutoBoostState extends Pointer { | ||
static { Loader.load(); } | ||
/** Default native constructor. */ | ||
public CUpti_ActivityAutoBoostState() { super((Pointer)null); allocate(); } | ||
/** Native array allocator. Access with {@link Pointer#position(long)}. */ | ||
public CUpti_ActivityAutoBoostState(long size) { super((Pointer)null); allocateArray(size); } | ||
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ | ||
public CUpti_ActivityAutoBoostState(Pointer p) { super(p); } | ||
private native void allocate(); | ||
private native void allocateArray(long size); | ||
@Override public CUpti_ActivityAutoBoostState position(long position) { | ||
return (CUpti_ActivityAutoBoostState)super.position(position); | ||
} | ||
@Override public CUpti_ActivityAutoBoostState getPointer(long i) { | ||
return new CUpti_ActivityAutoBoostState((Pointer)this).offsetAddress(i); | ||
} | ||
|
||
/** | ||
* Returned auto boost state. 1 is returned in case auto boost is enabled, 0 | ||
* otherwise | ||
*/ | ||
public native @Cast("uint32_t") int enabled(); public native CUpti_ActivityAutoBoostState enabled(int setter); | ||
|
||
/** | ||
* Id of process that has set the current boost state. The value will be | ||
* CUPTI_AUTO_BOOST_INVALID_CLIENT_PID if the user does not have the | ||
* permission to query process ids or there is an error in querying the | ||
* process id. | ||
*/ | ||
public native @Cast("uint32_t") int pid(); public native CUpti_ActivityAutoBoostState pid(int setter); | ||
|
||
} |
87 changes: 87 additions & 0 deletions
87
cuda/src/gen/java/org/bytedeco/cuda/cupti/CUpti_ActivityBranch2.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
// Targeted by JavaCPP version 1.5.11-SNAPSHOT: DO NOT EDIT THIS FILE | ||
|
||
package org.bytedeco.cuda.cupti; | ||
|
||
import java.nio.*; | ||
import org.bytedeco.javacpp.*; | ||
import org.bytedeco.javacpp.annotation.*; | ||
|
||
import static org.bytedeco.javacpp.presets.javacpp.*; | ||
import org.bytedeco.cuda.cudart.*; | ||
import static org.bytedeco.cuda.global.cudart.*; | ||
|
||
import static org.bytedeco.cuda.global.cupti.*; | ||
|
||
|
||
/** | ||
* \brief The activity record for source level result | ||
* branch. | ||
* | ||
* This activity record the locations of the branches in the | ||
* source (CUPTI_ACTIVITY_KIND_BRANCH). | ||
*/ | ||
@Properties(inherit = org.bytedeco.cuda.presets.cupti.class) | ||
public class CUpti_ActivityBranch2 extends Pointer { | ||
static { Loader.load(); } | ||
/** Default native constructor. */ | ||
public CUpti_ActivityBranch2() { super((Pointer)null); allocate(); } | ||
/** Native array allocator. Access with {@link Pointer#position(long)}. */ | ||
public CUpti_ActivityBranch2(long size) { super((Pointer)null); allocateArray(size); } | ||
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ | ||
public CUpti_ActivityBranch2(Pointer p) { super(p); } | ||
private native void allocate(); | ||
private native void allocateArray(long size); | ||
@Override public CUpti_ActivityBranch2 position(long position) { | ||
return (CUpti_ActivityBranch2)super.position(position); | ||
} | ||
@Override public CUpti_ActivityBranch2 getPointer(long i) { | ||
return new CUpti_ActivityBranch2((Pointer)this).offsetAddress(i); | ||
} | ||
|
||
/** | ||
* The activity record kind, must be CUPTI_ACTIVITY_KIND_BRANCH. | ||
*/ | ||
public native @Cast("CUpti_ActivityKind") int kind(); public native CUpti_ActivityBranch2 kind(int setter); | ||
|
||
/** | ||
* The ID for source locator. | ||
*/ | ||
public native @Cast("uint32_t") int sourceLocatorId(); public native CUpti_ActivityBranch2 sourceLocatorId(int setter); | ||
|
||
/** | ||
* The correlation ID of the kernel to which this result is associated. | ||
*/ | ||
public native @Cast("uint32_t") int correlationId(); public native CUpti_ActivityBranch2 correlationId(int setter); | ||
|
||
/** | ||
* Correlation ID with global/device function name | ||
*/ | ||
public native @Cast("uint32_t") int functionId(); public native CUpti_ActivityBranch2 functionId(int setter); | ||
|
||
/** | ||
* The pc offset for the branch. | ||
*/ | ||
public native @Cast("uint32_t") int pcOffset(); public native CUpti_ActivityBranch2 pcOffset(int setter); | ||
|
||
/** | ||
* Number of times this branch diverged | ||
*/ | ||
public native @Cast("uint32_t") int diverged(); public native CUpti_ActivityBranch2 diverged(int setter); | ||
|
||
/** | ||
* This increments each time when this instruction is executed by number | ||
* of threads that executed this instruction | ||
*/ | ||
public native @Cast("uint64_t") long threadsExecuted(); public native CUpti_ActivityBranch2 threadsExecuted(long setter); | ||
|
||
/** | ||
* The number of times this instruction was executed per warp. It will be incremented | ||
* regardless of predicate or condition code. | ||
*/ | ||
public native @Cast("uint32_t") int executed(); public native CUpti_ActivityBranch2 executed(int setter); | ||
|
||
/** | ||
* Undefined. Reserved for internal use. | ||
*/ | ||
public native @Cast("uint32_t") int pad(); public native CUpti_ActivityBranch2 pad(int setter); | ||
} |
Oops, something went wrong.