I hereby claim:
- I am mikealexander on github.
- I am hcfmike (https://keybase.io/hcfmike) on keybase.
- I have a public key ASBc-YBD50Z_i8gZuigt5soeKGjt1TZivu9eAk3NIhrWKAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
Macro.InsertText(".ForMember(dest => dest.Id, opts => opts.Ignore()"); | |
dte.ActiveDocument.Selection.WordLeft(false, 8); | |
dte.ActiveDocument.Selection.WordLeft(true); |
var fs = require('fs'); | |
fs.writeFile('output.txt', '', function(){ }); | |
var write = function(o) { | |
fs.appendFile('output.txt', (o + '\n'), function (err) { | |
if (err) { | |
log.info("Problem appending to file."); | |
} | |
}); | |
} |
#include <string> | |
#include <string.h> | |
int **starts, **ends; | |
const int NUM_BLOCKS = 9, THREADS_PER_BLOCK = 10; | |
const std::string input = "assign4input1"; | |
// figures out the start and end position for every thread and puts them in 2D arrays. | |
void calculateStarts(int textLength, int patternLength) | |
{ |
int hostMatch(long *comparisons, int numthreads) { | |
int pos, i, j, lastI; | |
long comps = 0; | |
pos = -1; | |
lastI = textLength-patternLength; | |
#pragma omp parallel private(i, j) shared(pos) num_threads(numthreads) reduction(+ : comps) | |
#pragma omp for schedule(static) | |
for(i=0; i <= lastI; i++) { | |
if (pos == -1) { |
int hostMatch(long *comparisons, int numthreads) { | |
int pos, i, j, lastI; | |
long comps = 0; | |
pos = -1; | |
lastI = textLength-patternLength; | |
#pragma omp parallel private(i, j) shared(pos) num_threads(numthreads) reduction(+ : comps) | |
#pragma omp for schedule(static) | |
for(i=0; i <= lastI; i++) { |
int hostMatch(long *comparisons, int numthreads) { | |
int pos, i, j, lastI; | |
long comps = 0; | |
pos = -1; | |
lastI = textLength-patternLength; | |
#pragma omp parallel private(i, j) shared(pos) num_threads(numthreads) reduction(+ : comps) | |
#pragma omp for schedule(static) | |
for(i=0; i <= lastI; i++) { | |
j=0; |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <sys/types.h> | |
#include <unistd.h> | |
char * generatePattern(int size) { | |
int i; | |
// allocate enough memory for array of size+1 characters (the extra is for null termination) |