Abstract
Concurrent execution of tasks in GPUs can reduce the computation time of a workload by overlapping data transfer and execution commands. However it is difficult to implement an efficient runtime scheduler that minimizes the workload makespan as many execution orderings should be evaluated. In this paper, we employ scheduling theory to build a model that takes into account the device capabilities, workload characteristics, constraints and objective functions. In our model, GPU tasks scheduling is reformulated as a flow shop scheduling problem, which allow us to apply and compare well known methods already developed in the operations research field. In addition we develop a new heuristic, specifically focused on executing GPU commands, that achieves better scheduling results than previous techniques. Finally, a comprehensive evaluation, showing the suitability and robustness of this new approach, is conducted in three different NVIDIA architectures (Kepler, Maxwell and Pascal).
This work has been supported by the Ministry of Education of Spain (TIN2016-80920-R) and the Junta de Andalucía of Spain (TIC-1692).
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Notes
- 1.
HyperQ is a feature of modern GPUs since Kepler architecture, where several hardware managed queues can schedule different kernel commands, but can also change the execution order of these commands.
References
Allahverdi, A., Ng, C., Cheng, T., Kovalyov, M.Y.: A survey of scheduling problems with setup times or costs. Eur. J. Oper. Res. 187(3), 985–1032 (2008). https://doi.org/10.1016/j.ejor.2006.06.060
Basaran, C., Kang, K.D.: Supporting preemptive task executions and memory copies in GPGPUs. In: 2012 24th Euromicro Conference on Real-Time Systems, pp. 287–296, July 2012. https://doi.org/10.1109/ECRTS.2012.15
Chen, G., Zhao, Y., Shen, X., Zhou, H.: EffiSha: a software framework for enabling effficient preemptive scheduling of GPU. In: Proceedings of the 22nd ACM SIGPLAN Symposium on Principles and Practice of Parallel Programming. PPoPP 2017, pp. 3–16. ACM, New York (2017). https://doi.org/10.1145/3018743.3018748
Framinan, J., Gupta, J., Leisten, R.: A review and classification of heuristics for permutation flow-shop scheduling with makespan objective. J. Oper. Res. Soc. 55, 1243–1255 (2004). https://doi.org/10.1057/palgrave.jors.2601784
Garey, M.R., Johnson, D.S., Sethi, R.: The complexity of flowshop and jobshop scheduling. Math. Oper. Res. 1(2), 117–129 (1976)
Graham, R., Lawler, E., Lenstra, J., Kan, A.: Optimization and approximation in deterministic sequencing and scheduling: a survey. Ann. Discrete Math. 5(C), 287–326 (1979). https://doi.org/10.1016/S0167-5060(08)70356-X
Khronos Group: OpenCL 2.0 API Specification, October 2014. https://www.khronos.org/registry/cl/specs/opencl-2.0.pdf
Lázaro-Muñoz, A.J., González-Linares, J., Gómez-Luna, J., Guil, N.: A tasks reordering model to reduce transfers overhead on GPUs. J. Parallel Distrib. Comput. 109, 258–271 (2017). https://doi.org/10.1016/j.jpdc.2017.06.015
Lee, H., Al Faruque, M.A.: GPU-EvR: run-time event based real-time scheduling framework on GPGPU platform. In: Proceedings of the Conference on Design, Automation and Test in Europe. DATE 2014, pp. 220:1–220:6. European Design and Automation Association, Leuven (2014)
Nawaz, M., Enscore, E.E., Ham, I.: A heuristic algorithm for the m-machine, n-job flow-shop sequencing problem. Omega 11(1), 91–95 (1983). https://doi.org/10.1016/0305-0483(83)90088-9
NVIDIA: CUDA Multi-process Service, March 2015. https://docs.nvidia.com/deploy/pdf/CUDAMultiProcessServiceOverview.pdf
NVIDIA: CUDA Programming Guide, September 2015. http://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html
NVIDIA: CUDA Samples, September 2015. http://docs.nvidia.com/cuda/cuda-samples/index.html
Palmer, D.S.: Sequencing jobs through a multi-stage process in the minimum total time–a quick method of obtaining a near optimum. J. Oper. Res. Soc. 16(1), 101–107 (1965). https://doi.org/10.1057/jors.1965.8
Park, J.J.K., Park, Y., Mahlke, S.: Chimera: collaborative preemption for multitasking on a shared GPU. In: Proceedings of the Twentieth International Conference on Architectural Support for Programming Languages and Operating Systems. ASPLOS 2015, pp. 593–606. ACM, New York (2015). https://doi.org/10.1145/2694344.2694346
Pinedo, M.: Scheduling: Theory, Algorithms, and Systems. With CD-ROM, 3rd edn. Springer, New York (2008)
Ruiz, R., Maroto, C.: A comprehensive review and evaluation of permutation flowshop heuristics. Eur. J. Oper. Res. 165(2), 479–494 (2005). https://doi.org/10.1016/j.ejor.2004.04.017
Taillard, E.: Some efficient heuristic methods for the flow shop sequencing problem. Eur. J. Oper. Res. 47, 65–74 (1990)
Tukey, J.W.: Exploratory Data Analysis. Addison-Wesley Publishing Company, Boston (1977)
Wang, Z., Yang, J., Melhem, R., Childers, B., Zhang, Y., Guo, M.: Simultaneous multikernel GPU: multi-tasking throughput processors via fine-grained sharing. In: 2016 IEEE International Symposium on High Performance Computer Architecture (HPCA), pp. 358–369, March 2016. https://doi.org/10.1109/HPCA.2016.7446078
Xu, Q., Jeon, H., Kim, K., Ro, W.W., Annavaram, M.: Warped-Slicer: efficient intra-SM slicing through dynamic resource partitioning for GPU multiprogramming. In: Proceedings of the 43rd International Symposium on Computer Architecture. ISCA 2016, pp. 230–242. IEEE Press, Piscataway (2016). https://doi.org/10.1109/ISCA.2016.29
Zhong, J., He, B.: Kernelet: high-throughput GPU kernel executions with dynamic slicing and scheduling. IEEE Trans. Parallel Distrib. Syst. 25(6), 1522–1532 (2014). https://doi.org/10.1109/TPDS.2013.257
Zhou, H., Tong, G., Liu, C.: GPES: a preemptive execution system for GPGPU computing. In: 21st IEEE Real-Time and Embedded Technology and Applications Symposium, pp. 87–97, April 2015. https://doi.org/10.1109/RTAS.2015.7108420
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2019 Springer Nature Switzerland AG
About this paper
Cite this paper
Lázaro-Muñoz, AJ., López-Albelda, B., González-Linares, J.M., Guil, N. (2019). A Scheduling Theory Framework for GPU Tasks Efficient Execution. In: Senger, H., et al. High Performance Computing for Computational Science – VECPAR 2018. VECPAR 2018. Lecture Notes in Computer Science(), vol 11333. Springer, Cham. https://doi.org/10.1007/978-3-030-15996-2_11
Download citation
DOI: https://doi.org/10.1007/978-3-030-15996-2_11
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-030-15995-5
Online ISBN: 978-3-030-15996-2
eBook Packages: Computer ScienceComputer Science (R0)