how to make a experinment fof Amadhls law?

I want to use the cuda or opencl to make a amdahl law modei. But how to make use different number of cores? Do cuda or opencl can control how many cores to work in parrellel?how to do that