| 349 | } |
| 350 | |
| 351 | int main() |
| 352 | { |
| 353 | // Initializing HIP device |
| 354 | hipDeviceProp_t device_properties; |
| 355 | HIP_CHECK(hipGetDeviceProperties(&device_properties, 0)); |
| 356 | |
| 357 | // Show device info |
| 358 | printf("Selected device: %s \n", device_properties.name); |
| 359 | printf("Available global memory: %lu \n", device_properties.totalGlobalMem); |
| 360 | printf("Shared memory per block: %lu \n", device_properties.sharedMemPerBlock); |
| 361 | printf("Warp size: %d \n", device_properties.warpSize); |
| 362 | printf("Max threads per block: %d \n", device_properties.maxThreadsPerBlock); |
| 363 | |
| 364 | // Running kernels |
| 365 | run_example_global_memory_storage<int>(1024); |
| 366 | run_example_shared_memory<int>(1024); |
| 367 | run_example_union_storage_types<int>(1024); |
| 368 | run_example_dynamic_shared_memory<int>(1024); |
| 369 | } |
nothing calls this directly
no outgoing calls
no test coverage detected