Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
starrygl-DynamicHistory
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhlj
starrygl-DynamicHistory
Commits
781f626e
Commit
781f626e
authored
Jan 23, 2024
by
xxx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
samplers little changes
parent
7f481360
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
11 deletions
+10
-11
install.sh
+7
-8
starrygl/sample/sample_core/neighbor_sampler.py
+1
-1
starrygl/sample/sample_core/reddit_demo_before.py
+1
-1
starrygl/sample/sample_core/reddit_demo_static.py
+1
-1
No files found.
install.sh
View file @
781f626e
...
...
@@ -3,17 +3,16 @@
mkdir
-p
build
&&
cd
build
cmake ..
\
-DCMAKE_EXPORT_COMPILE_COMMANDS
=
ON
\
<<<<<<
< HEAD
-DCMAKE_PREFIX_PATH
=
"/home/zlj/.miniconda3/envs/dgnn/lib/python3.10/site-packages"
\
-DPython3_ROOT_DIR
=
"/home/zlj/.miniconda3/envs/dgnn"
\
-DCUDA_TOOLKIT_ROOT_DIR
=
"/home/zlj/local/cuda-12.2"
\
=======
-DCMAKE_PREFIX_PATH
=
$(
python
-c
"from distutils.sysconfig import get_python_lib; print(get_python_lib())"
)
\
-DPython3_ROOT_DIR
=
$(
python
-c
"import sys; print(sys.prefix)"
)
\
-DCUDA_TOOLKIT_ROOT_DIR
=
${
CUDA_HOME
:-
"
$(
realpath
$(
dirname
$(
which nvcc
))
/../
)
"
}
\
>>>>>>>
98ad16d40e5e3e0a7dcdbc4f21dc9e164abc625f
&&
make
-j32
\
&&
rm
-rf
../starrygl/lib
\
&&
mkdir ../starrygl/lib
\
&&
cp lib
*
.so ../starrygl/lib/
\
&&
patchelf
--set-rpath
'$ORIGIN:$ORIGIN/lib'
--force-rpath
../starrygl/lib/
*
.so
\ No newline at end of file
&&
patchelf
--set-rpath
'$ORIGIN:$ORIGIN/lib'
--force-rpath
../starrygl/lib/
*
.so
# -DCMAKE_PREFIX_PATH="/home/zlj/.miniconda3/envs/dgnn/lib/python3.10/site-packages" \
# -DPython3_ROOT_DIR="/home/zlj/.miniconda3/envs/dgnn" \
# -DCUDA_TOOLKIT_ROOT_DIR="/home/zlj/local/cuda-12.2" \
\ No newline at end of file
starrygl/sample/sample_core/neighbor_sampler.py
View file @
781f626e
...
...
@@ -8,7 +8,7 @@ import torch.multiprocessing as mp
from
typing
import
Optional
,
Tuple
from
.base
import
BaseSampler
,
NegativeSampling
,
SampleOutput
,
SampleType
# from sample_cores
import ParallelSampler, get_neighbors, heads_unique
from
starrygl.lib.libstarrygl_sampler
import
ParallelSampler
,
get_neighbors
,
heads_unique
from
torch.distributed.rpc
import
rpc_async
...
...
starrygl/sample/sample_core/reddit_demo_before.py
View file @
781f626e
...
...
@@ -62,7 +62,7 @@ def test():
torch
.
backends
.
cudnn
.
benchmark
=
False
torch
.
backends
.
cudnn
.
deterministic
=
True
g_data
,
df
=
load_
gdel
t_dataset
()
g_data
,
df
=
load_
reddi
t_dataset
()
print
(
g_data
)
# for worker in [1,2,3,4,5,6,7,8,9,10,20,30]:
# import random
...
...
starrygl/sample/sample_core/reddit_demo_static.py
View file @
781f626e
...
...
@@ -70,7 +70,7 @@ def test():
torch
.
backends
.
cudnn
.
benchmark
=
False
torch
.
backends
.
cudnn
.
deterministic
=
True
g_data
=
load_
ogb
_dataset
()
g_data
=
load_
reddit
_dataset
()
print
(
g_data
)
from
.neighbor_sampler
import
NeighborSampler
,
get_neighbors
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment