def get_multiple_devices(platform, dev_type, num_devs):
    """
    Get Multiple Devices given a platform and dev type.

    :param platform: OpenCL Platform pertaining to some vendor
    :type platform: pyopencl.platform object
    :param dev_type: Device Type (CPU or GPU)
    :type dev_type: pyopencl.device_type object
    :param num_devs: Number of Devices
    :type num_devs: Integer
    :return: List of OpenCL devices
    :rtype: list of pyopencl.device objects
    """
    devs = platform.get_devices(device_type=dev_type)

    if num_devs > len(devs):
        print("Requirement: " + str(num_devs) + " greater than availability: " + str(len(devs)))
    else:
        return devs[:num_devs]