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
87bc53c5
There was an error fetching the commit references. Please try again later.
Commit
87bc53c5
authored
5 years ago
by
Recolic Keghart
Browse files
Options
Downloads
Patches
Plain Diff
parallel test script now supports gpu_factor tune
parent
4bedf6cb
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
multidev.cuh
+4
-1
4 additions, 1 deletion
multidev.cuh
par_test.fish
+12
-2
12 additions, 2 deletions
par_test.fish
with
16 additions
and
3 deletions
multidev.cuh
+
4
−
1
View file @
87bc53c5
...
...
@@ -32,8 +32,11 @@ namespace gpma_impl {
dispatcher
()
:
mapKeyToSlot
(
hashSize
,
(
size_t
)(
-
1
))
{}
#ifndef TEST_GPU_FACTOR
#define TEST_GPU_FACTOR 7
#endif
// void init(const CpuArrT &ptrs_cpu, const GpuArrT &ptrs_gpu) {}
static
constexpr
size_t
gpu_factor
=
7
;
// 1 GPU is equals to 7 CPU.
static
constexpr
size_t
gpu_factor
=
TEST_GPU_FACTOR
;
// 1 GPU is equals to 7 CPU.
// Given KEY, returns the ID(offset from zero) of device, which is responsible to this KEY.
[[
gnu
::
always_inline
]]
size_t
select_device
(
const
KEY_TYPE
&
k
)
{
...
...
This diff is collapsed.
Click to expand it.
par_test.fish
+
12
−
2
View file @
87bc53c5
#!/usr/bin/fish
set g 1
for f in (seq 0 20)
echo FACTOR=$f ===========================================
make EXTRA_FLAGS="-DTEST_GPU_FACTOR=$f -DTEST_DISABLE_BFS"
and time ./gpma_bfs_demo /tmp/100000.pokec.txt 0
end
exit 0
set g 0
for i in (seq 8)
echo CPUS=$i ===========================================
make EXTRA_FLAGS="-DTEST_CPUS=$i -DTEST_GPUS=
0
-DTEST_DISABLE_BFS"
echo CPUS=$i
GPUS=$g
===========================================
make EXTRA_FLAGS="-DTEST_CPUS=$i -DTEST_GPUS=
$g
-DTEST_DISABLE_BFS"
and time ./gpma_bfs_demo /tmp/999999999.pokec.txt 0
end
...
...
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