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
#include <cuda.h> | |
#include <cuda_runtime_api.h> | |
#include <iostream> | |
#define NUM_GPUS 8 | |
void PrintMatrix( const std::string& str, int matrix[NUM_GPUS*NUM_GPUS], | |
int num_rows, int num_cols ) { | |
std::cout << str << ":\n"; |
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
Now running ./test_cusp_gpu_apply... | |
Running 4 test cases... | |
*** No errors detected | |
Now running ./test_cusp_gpu_metrics... | |
terminate called after throwing an instance of 'std::bad_alloc' | |
what(): std::bad_alloc | |
Aborted (core dumped) | |
Now running ./test_cusp_gpu_buildmatrix... |