Skip to content
Snippets Groups Projects
Commit dbaf4c81 authored by Recolic Keghart's avatar Recolic Keghart
Browse files

macro bugfix

parent 58e6e38e
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/fish #!/usr/bin/fish
function t function t
make TEST_DEV=$argv[1] make TEST_DEV=$argv[1]
and ./gpma_bfs_demo /dataset/999999999.pokec.txt 0 | tee /dev/fd/2 2>| grep 1334630 and ./gpma_bfs_demo /dataset/10000.pokec.txt 0 | tee /dev/fd/2 2>| grep 8261
set ret $status set ret $status
test $ret = 0 ; and echo $argv[1] OK ; or echo $argv[1] FAILED test $ret = 0 ; and echo $argv[1] OK ; or echo $argv[1] FAILED
......
...@@ -22,8 +22,9 @@ using SIZE_TYPE = uint32_t; ...@@ -22,8 +22,9 @@ using SIZE_TYPE = uint32_t;
namespace runtime_info { namespace runtime_info {
// some magic for template argument. // some magic for template argument.
using dev_type_t = size_t; using dev_type_t = size_t;
constexpr dev_type_t GPU = 19990823; // `#if DEV == CPU` won't work with constexpr. So I have to use macro.
constexpr dev_type_t CPU = 19981223; #define GPU 19990823ul
#define CPU 19981223ul
template <dev_type_t dev_type, typename value_type> template <dev_type_t dev_type, typename value_type>
struct native_vector; struct native_vector;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment