Skip to content

Instantly share code, notes, and snippets.

View ctcyang's full-sized avatar

Carl Yang ctcyang

  • University of California, Davis
  • United States
View GitHub Profile
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...
@ctcyang
ctcyang / main.cc
Created August 8, 2018 18:19
Test for GPU hardware link topology
#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";