codegen_t Derived Type

type, private, extends(string) :: codegen_t

Class for generating CUDA code


Inherits

type~~codegen_t~~InheritsGraph type~codegen_t codegen_t type~string string type~codegen_t->type~string

Components

Type Visibility Attributes Name Initial
character(len=:), public, allocatable :: raw

String


Type-Bound Procedures

procedure, public, pass(self) :: destroy => destroy_string

  • private subroutine destroy_string(self)

    Arguments

    Type IntentOptional Attributes Name
    class(string), intent(inout) :: self

procedure, public, pass(self) :: add => add_line

Adds new line to CUDA code

  • private subroutine add_line(self, line)

    Adds new line to CUDA code

    Arguments

    Type IntentOptional Attributes Name
    class(codegen_t), intent(inout) :: self

    Kernel code

    character(len=*), intent(in) :: line

    Line to add