This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
This program is to count keyword in file. The original code can run as command like: | |
" ./grep keyword filename " | |
in linux terminal. I modified it to let it run in parallel by using CUDA resources. | |
Now it can run in Visual Studio in machine with GPU device which support CUDA library. | |
*/ | |
#include <iostream> | |
#include <sstream> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright (C) 2016 Qiliang Chen. All rights reserved. | |
// This code is governed by the BSD license found in the LICENSE file. | |
/*--- | |
description: Array.prototype.reverse is to reverse the array. This tester will test | |
if this function work correctly. This will try both numbers and strings. | |
This tester will create two array: Array of strings named "sample", and Array of integer named "sample2" | |
Then they will call reverse built-in function. | |
At last, the reversed array will be compared with expected datas. | |