Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
Faiss
Commits
0916bfe7
Commit
0916bfe7
authored
Sep 07, 2022
by
Your Name
Browse files
修改compile脚本至pwd路径
parent
9f59fa20
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
compile.sh
compile.sh
+2
-1
test_gpu.sh
test_gpu.sh
+3
-1
No files found.
compile.sh
View file @
0916bfe7
...
...
@@ -12,7 +12,8 @@ CXX=hipcc CC=hipcc cmake -DFAISS_ENABLE_GPU=ON -DBUILD_SHARED_LIBS=ON -DBUILD_T
make
-j32
faiss
VERBOSE
=
1
>
hc_faiss.log 2>&1
make
-j32
swigfaiss
VERBOSE
=
1
>
hc_swigfaiss.log 2>&1
export
LD_LIBRARY_PATH
=
/public/home/huchen/faiss/faiss_gitlab_ok/build/faiss/gpu/test/:/public/home/huchen/faiss/faiss_gitlab_ok/build/faiss/:/public/home/huchen/faiss/faiss_gitlab_ok/build/lib/:
$LD_LIBRARY_PATH
export
BUILD_DIR
=
`
pwd
`
export
LD_LIBRARY_PATH
=
${
BUILD_DIR
}
/faiss/gpu/test/:
${
BUILD_DIR
}
/faiss/:
${
BUILD_DIR
}
/lib/:
$LD_LIBRARY_PATH
make
-j32
install
VERBOSE
=
1
>
hc_install.log 2>&1
#make -j32 test VERBOSE=1 > hc_test.log 2>&1
...
...
test_gpu.sh
View file @
0916bfe7
...
...
@@ -6,7 +6,9 @@ export LD_LIBRARY_PATH=/opt/intel/compilers_and_libraries_2018.1.163/linux/mkl/l
export
CPLUS_INCLUDE_PATH
=
${
ROCM_PATH
}
/hiprand/include/:
${
ROCM_PATH
}
/rocrand/include:
$CPLUS_INCLUDE_PATH
export
LD_LIBRARY_PATH
=
${
ROCM_PATH
}
/hipblas/lib/:
$LD_LIBRARY_PATH
export
LD_LIBRARY_PATH
=
${
ROCM_PATH
}
/llvm/lib:
$LD_LIBRARY_PATH
export
LD_LIBRARY_PATH
=
/public/home/huchen/faiss/faiss_gitlab_ok/build/faiss/gpu/test/:/public/home/huchen/faiss/faiss_gitlab_ok/build/faiss/:/public/home/huchen/faiss/faiss_gitlab_ok/build/lib/:
$LD_LIBRARY_PATH
export
BUILD_DIR
=
`
pwd
`
export
LD_LIBRARY_PATH
=
${
BUILD_DIR
}
/faiss/gpu/test/:
${
BUILD_DIR
}
faiss/:
${
BUILD_DIR
}
/lib/:
$LD_LIBRARY_PATH
#export HIP_KERNEL_PRINTF=1
#make -j95 VERBOSE=1
export
HIP_VISIBLE_DEVICES
=
3
...
...
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