Skip to content

Commit

Permalink
decrease max length to not get killed
Browse files Browse the repository at this point in the history
  • Loading branch information
sachingodishela committed Jul 13, 2024
1 parent abea5de commit 2616794
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vector/add.cu
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ int main() {
int iteration = 0;
int MAX_THREADS_PER_BLOCK = 1024;
int MAX_BLOCKS = 32;
while (0 < vectorSize && vectorSize < ULONG_LONG_MAX) {
while (0 < vectorSize && iteration < 29) {
std::cout << "vectorSize: " << vectorSize << ", ";
size_t memorySize = vectorSize * sizeof(float);
std::vector<float> A(vectorSize);
Expand Down

0 comments on commit 2616794

Please sign in to comment.