mirror of
https://github.com/vortexgpgpu/vortex.git
synced 2025-04-24 13:57:17 -04:00
checking workgroup occupancy
This commit is contained in:
parent
98ead77405
commit
0003926d01
2 changed files with 44 additions and 0 deletions
|
@ -35,6 +35,7 @@ typedef void* vx_buffer_h;
|
|||
#define VX_CAPS_LOCAL_MEM_SIZE 0x6
|
||||
#define VX_CAPS_LOCAL_MEM_ADDR 0x7
|
||||
#define VX_CAPS_ISA_FLAGS 0x8
|
||||
#define VX_CAPS_NUM_BARRIERS 0x9
|
||||
|
||||
// device isa flags
|
||||
#define VX_ISA_STD_A (1ull << 0)
|
||||
|
@ -125,6 +126,9 @@ int vx_upload_bytes(vx_device_h hdevice, const void* content, uint64_t size, vx_
|
|||
// upload file to device
|
||||
int vx_upload_file(vx_device_h hdevice, const char* filename, vx_buffer_h* hbuffer);
|
||||
|
||||
// calculate cooperative threads array occupancy
|
||||
int vx_check_occupancy(vx_device_h hdevice, uint32_t group_size, uint32_t* max_barriers, uint32_t* max_localmem);
|
||||
|
||||
// performance counters
|
||||
int vx_dump_perf(vx_device_h hdevice, FILE* stream);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue