In this paper, a GPU-based implementation of Differential Evolution (DE) and Particle Swarm Optimization (PSO) in CUDA is used to automatically tune the parameters of PSO. The parameters were tuned over a set of 8 problems and then tested over 20 problems to assess the generalization ability of the tuners. We compare the results obtained using such parameters with the 'standard' ones proposed in the literature and the ones obtained by state-of-the-art tuning methods (irace). The results are comparable to the ones suggested for the standard version of PSO (SPSO), and the ones obtained by irace, while the GPU implementation makes tuning time acceptable. To the best of our knowledge, this is the first time that a general purpose library of GPU-based metaheuristics is used to solve this problem, as well as being one of the few cases where DE and PSO are both used as tuners.