Tell me about a time you optimized GPU performance for an application, and what changes you made.
For this coding exercise, implement a function that converts profiling observations into prioritized optimization recommendations. Each observation contains memory_bound, coalesced, occupancy, launch_overhead, and branch_divergence fields. Return applicable recommendations ordered by descending evidence, using the tie order defined below.
Function signature: recommend_gpu_optimizations(profile) Input is a list of dictionaries, and output is a list of recommendation strings.
memory_bound, coalesced, launch_overhead, and branch_divergence are booleansoccupancy is a number in the range [0, 1]def recommend_gpu_optimizations(profile):