Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
DeepEP
Commits
8b97effd
Commit
8b97effd
authored
Jan 15, 2026
by
lijian6
Browse files
Modify the way of nvshmem compile
Signed-off-by:
lijian
<
lijian6@sugon.com
>
parent
e307a4e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
10 deletions
+11
-10
build.sh
build.sh
+11
-10
No files found.
build.sh
View file @
8b97effd
...
@@ -122,16 +122,17 @@ build_dushmem()
...
@@ -122,16 +122,17 @@ build_dushmem()
cd
"
$src_path
"
cd
"
$src_path
"
}
}
if
[
"
$USE_NVSHMEM
"
==
"ON"
]
;
then
if
[
"
$USE_NVSHMEM
"
==
"ON"
]
;
then
if
[
!
-d
"third-party/dushmem-hip/src/"
]
;
then
# if [ ! -d "third-party/dushmem-hip/src/" ]; then
echo
"download submodule..."
# echo "download submodule..."
git submodule update
--init
third-party/dushmem-hip
# git submodule update --init third-party/dushmem-hip
fi
# fi
if
[
!
-d
"third-party/dushmem_install"
]
;
then
# if [ ! -d "third-party/dushmem_install" ]; then
mkdir
-p
third-party/dushmem_install
# mkdir -p third-party/dushmem_install
fi
# fi
build_dushmem
# build_dushmem
SHMEM_INSTALL_PREFIX
=
$(
pwd
)
/third-party/dushmem_install
# SHMEM_INSTALL_PREFIX=$(pwd)/third-party/dushmem_install
SHMEM_INSTALL_PREFIX
=
${
ROCM_PATH
}
/dushmem
COMPILE_OPTIONS
=
${
COMPILE_OPTIONS
:
= -fPIC -DFORCE_NVSHMEM_API -DHIP_ENABLE_WARP_SYNC_BUILTINS -D__HIP_PLATFORM_AMD__=1 -DUSE_ROCM=1 -DHIPBLAS_V2 -DCUDA_HAS_FP16=1 -O3 -fgpu-rdc -DTORCH_API_INCLUDE_EXTENSION_H
'-DPYBIND11_COMPILER_TYPE="_gcc"'
'-DPYBIND11_STDLIB="_libstdcpp"'
'-DPYBIND11_BUILD_ABI="_cxxabi1014"'
-DTORCH_EXTENSION_NAME=deep_ep_cpp -D_GLIBCXX_USE_CXX11_ABI=1 --offload-arch=gfx936 -std=c++17 -Wno-return-type
}
COMPILE_OPTIONS
=
${
COMPILE_OPTIONS
:
= -fPIC -DFORCE_NVSHMEM_API -DHIP_ENABLE_WARP_SYNC_BUILTINS -D__HIP_PLATFORM_AMD__=1 -DUSE_ROCM=1 -DHIPBLAS_V2 -DCUDA_HAS_FP16=1 -O3 -fgpu-rdc -DTORCH_API_INCLUDE_EXTENSION_H
'-DPYBIND11_COMPILER_TYPE="_gcc"'
'-DPYBIND11_STDLIB="_libstdcpp"'
'-DPYBIND11_BUILD_ABI="_cxxabi1014"'
-DTORCH_EXTENSION_NAME=deep_ep_cpp -D_GLIBCXX_USE_CXX11_ABI=1 --offload-arch=gfx936 -std=c++17 -Wno-return-type
}
SHMEM_LINK_OPTIONS
=
"-Wl,-rpath,
${
SHMEM_INSTALL_PREFIX
}
/lib/ -l:libnvshmem_device.a -lnvshmem_host"
SHMEM_LINK_OPTIONS
=
"-Wl,-rpath,
${
SHMEM_INSTALL_PREFIX
}
/lib/ -l:libnvshmem_device.a -lnvshmem_host"
fi
fi
...
...
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