pyrqa/opencl.py
def locate_kernels(self):
        """
        Locate OpenCL kernel files based on the kernel file names.

        :returns: Kernel file names and their corresponding sources.
        :rtype: Dictionary.
        """
        kernel_dict = dict((kernel_file_name, '') for kernel_file_name in self.kernel_file_names)

        search_path = self.leaf_path
        while search_path != self.root_path:
            search_path = os.path.abspath(os.path.join(search_path, os.pardir))

            for kernel_file_name in self.kernel_file_names:
                kernel_source = kernel_dict[kernel_file_name]
                if not kernel_source:
                    kernel_source = self.search_paths(search_path, kernel_file_name)
                    if not kernel_source:
                        kernel_source = self.search_paths(search_path, kernel_file_name)

                kernel_dict[kernel_file_name] = kernel_source

        return kernel_dict

        Locate OpenCL kernel files based on the kernel file names.

        :returns: Kernel file names and their corresponding sources.
        :rtype: Dictionary.
        
Locate OpenCL kernel files based on the kernel file names.
Locate OpenCL kernel files based on the kernel file names .
def locate_kernels(self):
        kernel_dict = dict((kernel_file_name, '') for kernel_file_name in self.kernel_file_names)
        search_path = self.leaf_path
        while search_path != self.root_path:
            search_path = os.path.abspath(os.path.join(search_path, os.pardir))
            for kernel_file_name in self.kernel_file_names:
                kernel_source = kernel_dict[kernel_file_name]
                if not kernel_source:
                    kernel_source = self.search_paths(search_path, kernel_file_name)
                    if not kernel_source:
                        kernel_source = self.search_paths(search_path, kernel_file_name)
                kernel_dict[kernel_file_name] = kernel_source
        return kernel_dict
def locate_kernels ( self ) : kernel_dict = dict ( ( kernel_file_name , '' ) for kernel_file_name in self . kernel_file_names ) search_path = self . leaf_path while search_path != self . root_path : search_path = os . path . abspath ( os . path . join ( search_path , os . pardir ) ) for kernel_file_name in self . kernel_file_names : kernel_source = kernel_dict [ kernel_file_name ] if not kernel_source : kernel_source = self . search_paths ( search_path , kernel_file_name ) if not kernel_source : kernel_source = self . search_paths ( search_path , kernel_file_name ) kernel_dict [ kernel_file_name ] = kernel_source return kernel_dict
Locate OpenCL kernel files based on the kernel file names.
Locate OpenCL kernel files based on the kernel file names .
"""
        Locate OpenCL kernel files based on the kernel file names.

        :returns: Kernel file names and their corresponding sources.
        :rtype: Dictionary.
        """
Kernel file names and their corresponding sources.
Kernel file names and their corresponding sources .
Dictionary.
self