Changeset 295


Ignore:
Timestamp:
09/22/14 16:20:42 (3 years ago)
Author:
ghb
Message:

Fixed bug when generating CUDA code for data functions that take only a scalar value and not an array as input.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • f2cc/tags/release-0.1/source/synthesizer/synthesizer.cpp

    r99 r295  
    16951695            + "[" + output_index_variable_name + "]" 
    16961696            " = " + function->getName() + "("; 
    1697         if (old_input_param_data_type.getArraySize() > 0) { 
     1697        if (old_input_param_data_type.getArraySize() > 1) { 
    16981698            new_body += "&"; 
    16991699        } 
     
    17031703    else { 
    17041704        new_body += kIndents + kIndents + function->getName() + "("; 
    1705         if (old_input_param_data_type.getArraySize() > 0) { 
     1705        if (old_input_param_data_type.getArraySize() > 1) { 
    17061706            new_body += "&"; 
    17071707        } 
Note: See TracChangeset for help on using the changeset viewer.