Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gpma_bfs
Manage
Activity
Members
Labels
Plan
Issues
2
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Recolic
gpma_bfs
Commits
dbaf4c81
There was an error fetching the commit references. Please try again later.
Commit
dbaf4c81
authored
5 years ago
by
Recolic Keghart
Browse files
Options
Downloads
Patches
Plain Diff
macro bugfix
parent
58e6e38e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
test.fish
+1
-1
1 addition, 1 deletion
test.fish
utils.cuh
+3
-2
3 additions, 2 deletions
utils.cuh
with
4 additions
and
3 deletions
test.fish
+
1
−
1
View file @
dbaf4c81
#!/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
...
...
This diff is collapsed.
Click to expand it.
utils.cuh
+
3
−
2
View file @
dbaf4c81
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment