             offsets_dvec,
             pattern_dvec,
             max_pattern_len,
+            total_pattern_len,
             text_dvec,
             text_len,
             score_dvec );

    uint32 text_length(const uint32 i, context_type* context) const { return m_text_len; }

    // return the total number of cells
    uint64 cells() const { return size() * uint64( max_pattern_length() ) * uint64( m_text_len ); }

    // initialize the i-th context
    NVBIO_FORCEINLINE NVBIO_HOST_DEVICE

#include <vector>
#include <algorithm>

//#define SSWLIB
#if defined(SSWLIB)
#include "ssw.h"
#include <omp.h>
