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
bitsandbytes
Commits
8ac08b99
Commit
8ac08b99
authored
Jun 09, 2023
by
zhaoying1
Browse files
Update Makefile
parent
bdf85b5e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
Makefile
Makefile
+5
-4
No files found.
Makefile
View file @
8ac08b99
MKFILE_PATH
:=
$(
abspath
$(
lastword
$(MAKEFILE_LIST)
))
ROOT_DIR
:=
$(
patsubst
%/,%,
$(
dir
$(MKFILE_PATH)
))
DTK_PATH
:=
/opt/dtk
ROCM_PATH
:=
/opt/rocm
#ROCM_PATH := /opt/dtk
GPP
:=
/usr/bin/g++
ifeq
($(CUDA_HOME),)
CUDA_HOME
:=
$(
shell
which nvcc | rev |
cut
-d
'/'
-f3-
| rev
)
...
...
@@ -101,11 +102,11 @@ cpuonly: $(BUILD_DIR) env
HIP_INCLUDE
:=
-I
$(ROOT_DIR)
/csrc
-I
$(ROOT_DIR)
/include
# -I /opt/rocm-5.3.0/hipcub/include
HIP_LIB
:=
-L
$(
DTK
_PATH)
/lib
-L
$(
DTK
_PATH)
/llvm/bin/../lib/clang/14.0.0/lib/linux
-L
/opt/rh/devtoolset-7/root/usr/lib/gcc/x86_64-redhat-linux/7
-L
/opt/rh/devtoolset-7/root/usr/lib/gcc/x86_64-redhat-linux/7/../../../../lib64
-L
/lib/x86_64-linux-gnu
-L
/lib/../lib64
-L
/usr/lib/x86_64-linux-gnu
-L
/usr/lib/../lib64
-L
/lib
-L
/usr/lib
-lgcc_s
-lgcc
-lpthread
-lm
-lrt
-lamdhip64
-lhipblas
-lhipsparse
-lclang_rt
.builtins-x86_64
-lstdc
++
-lm
-lgcc_s
-lgcc
-lc
-lgcc_s
-lgcc
HIP_LIB
:=
-L
$(
ROCM
_PATH)
/lib
-L
$(
ROCM
_PATH)
/llvm/bin/../lib/clang/14.0.0/lib/linux
-L
/opt/rh/devtoolset-7/root/usr/lib/gcc/x86_64-redhat-linux/7
-L
/opt/rh/devtoolset-7/root/usr/lib/gcc/x86_64-redhat-linux/7/../../../../lib64
-L
/lib/x86_64-linux-gnu
-L
/lib/../lib64
-L
/usr/lib/x86_64-linux-gnu
-L
/usr/lib/../lib64
-L
/lib
-L
/usr/lib
-lgcc_s
-lgcc
-lpthread
-lm
-lrt
-lamdhip64
-lhipblas
-lhipsparse
-lclang_rt
.builtins-x86_64
-lstdc
++
-lm
-lgcc_s
-lgcc
-lc
-lgcc_s
-lgcc
hip
:
$(BUILD_DIR)
$(
DTK
_PATH)
/bin/hipcc
-std
=
c++14
-c
-fPIC
--offload-arch
=
gfx906
$(HIP_INCLUDE)
-o
$(BUILD_DIR)
/ops.o
-D
NO_CUBLASLT
$(CSRC)
/ops.cu
$(
DTK
_PATH)
/bin/hipcc
-std
=
c++14
-c
-fPIC
--offload-arch
=
gfx906
$(HIP_INCLUDE)
-o
$(BUILD_DIR)
/kernels.o
-D
NO_CUBLASLT
$(CSRC)
/kernels.cu
$(
ROCM
_PATH)
/bin/hipcc
-std
=
c++14
-c
-fPIC
--offload-arch
=
gfx906
$(HIP_INCLUDE)
-o
$(BUILD_DIR)
/ops.o
-D
NO_CUBLASLT
$(CSRC)
/ops.cu
$(
ROCM
_PATH)
/bin/hipcc
-std
=
c++14
-c
-fPIC
--offload-arch
=
gfx906
$(HIP_INCLUDE)
-o
$(BUILD_DIR)
/kernels.o
-D
NO_CUBLASLT
$(CSRC)
/kernels.cu
# /usr/bin/hipcc -fPIC -static
$(BUILD_DIR)
/ops.o
$(BUILD_DIR)
/kernels.o
-o
$(BUILD_DIR)
/link.so
$(GPP)
-std
=
c++14
-D__HIP_PLATFORM_AMD__
-DBUILD_CUDA
-shared
-fPIC
-I
$(DTK_PATH)
/include
$(HIP_INCLUDE)
$(BUILD_DIR)
/ops.o
$(BUILD_DIR)
/kernels.o
$(FILES_CPP)
$(HIP_LIB)
-o
./bitsandbytes/libbitsandbytes_hip_nocublaslt.so
...
...
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