Main Content

RTW.TflBlasEntryGenerator

Create code replacement table entry for a BLAS operation

Description

example

obj = RTW.TflBlasEntryGenerator creates a handle, obj, to a code replacement table entry for a BLAS operator. The entry maps a conceptual representation of an operator to an implementation (replacement) representation.

Examples

collapse all

This example shows how to create a code replacement table entry for a BLAS operator, op_entry.

hTable = RTW.TflTable;

arch = computer('arch');
compilerName = 'microsoft';
LibPath = fullfile('$(MATLAB_ROOT)', 'extern', ...
    'lib', arch, compilerName);

op_entry = RTW.TflBlasEntryGenerator;

libExt = 'lib';

setTflCOperationEntryParameters(op_entry, ...
    'Key',                      'RTW_OP_MUL', ...
    'Priority',                 100, ...
    'ImplementationName',       'dgemm32', ...
    'ImplementationHeaderFile', 'blascompat32_crl.h', ...
    'ImplementationHeaderPath', fullfile('$(MATLAB_ROOT)','extern','include'), ...
    'AdditionalLinkObjs',       {['libmwblascompat32.' libExt]}, ...
    'AdditionalLinkObjsPaths',  {LibPath}, ...
    'SideEffects',              true);

Output Arguments

collapse all

The obj is a handle to the created code replacement table entry for a BLAS operator.

Version History

Introduced in R2010a