Hierarchical Resource Partitioning on Modern GPUs: A Reinforcement Learning Approach