MCPcopy Create free account
hub / github.com/ROCm/rocPRIM / main

Function main

example/extra/example_temporary_storage.cpp:351–369  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

349}
350
351int 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected