checking workgroup occupancy

This commit is contained in:
Blaise Tine 2024-05-07 23:38:51 -07:00
parent 98ead77405
commit 0003926d01
2 changed files with 44 additions and 0 deletions

View file

@ -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);