pyrqa/opencl.py
def create_programs(self,
                        kernel_file_names,
                        similarity_measure_name,
                        leaf_path,
                        root_path):
        """
        Create device specific OpenCL programs.

        :param kernel_file_names: Names of the OpenCL kernel files.
        :param similarity_measure_name: Name of the similarity measure.
        :param leaf_path: Leaf path to search for OpenCL kernel files.
        :param root_path: Root path to search for OpenCL kernel files.
        """
        self.kernel_file_names = kernel_file_names
        self.similarity_measure_name = similarity_measure_name
        self.leaf_path = leaf_path
        self.root_path = root_path

        for device in self.devices:
            program_source = self.get_program_source()
            os.environ['PYOPENCL_COMPILER_OUTPUT'] = '1'
            program = cl.Program(self.contexts[device], program_source)

            if not self.optimisations_enabled:
                program.build(options=["-cl-opt-disable"])
            else:
                program.build()

            self.programs[device] = program

        self.programs_created = True

        Create device specific OpenCL programs.

        :param kernel_file_names: Names of the OpenCL kernel files.
        :param similarity_measure_name: Name of the similarity measure.
        :param leaf_path: Leaf path to search for OpenCL kernel files.
        :param root_path: Root path to search for OpenCL kernel files.
        
Create device specific OpenCL programs.
Create device specific OpenCL programs .
def create_programs(self,
                        kernel_file_names,
                        similarity_measure_name,
                        leaf_path,
                        root_path):
        self.kernel_file_names = kernel_file_names
        self.similarity_measure_name = similarity_measure_name
        self.leaf_path = leaf_path
        self.root_path = root_path
        for device in self.devices:
            program_source = self.get_program_source()
            os.environ['PYOPENCL_COMPILER_OUTPUT'] = '1'
            program = cl.Program(self.contexts[device], program_source)
            if not self.optimisations_enabled:
                program.build(options=["-cl-opt-disable"])
            else:
                program.build()
            self.programs[device] = program
        self.programs_created = True
def create_programs ( self , kernel_file_names , similarity_measure_name , leaf_path , root_path ) : self . kernel_file_names = kernel_file_names self . similarity_measure_name = similarity_measure_name self . leaf_path = leaf_path self . root_path = root_path for device in self . devices : program_source = self . get_program_source ( ) os . environ [ 'PYOPENCL_COMPILER_OUTPUT' ] = '1' program = cl . Program ( self . contexts [ device ] , program_source ) if not self . optimisations_enabled : program . build ( options = [ "-cl-opt-disable" ] ) else : program . build ( ) self . programs [ device ] = program self . programs_created = True
Create device specific OpenCL programs.
Create device specific OpenCL programs .
"""
        Create device specific OpenCL programs.

        :param kernel_file_names: Names of the OpenCL kernel files.
        :param similarity_measure_name: Name of the similarity measure.
        :param leaf_path: Leaf path to search for OpenCL kernel files.
        :param root_path: Root path to search for OpenCL kernel files.
        """
self
kernel_file_names
Names of the OpenCL kernel files.
Names of the OpenCL kernel files .
similarity_measure_name
Name of the similarity measure.
Name of the similarity measure .
leaf_path
Leaf path to search for OpenCL kernel files.
Leaf path to search for OpenCL kernel files .
root_path
Root path to search for OpenCL kernel files.
Root path to search for OpenCL kernel files .