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
2842a9b0
Commit
2842a9b0
authored
Jul 08, 2023
by
zhaoying1
Browse files
Update Makefile
parent
ff08112d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
Makefile
Makefile
+5
-5
No files found.
Makefile
View file @
2842a9b0
MKFILE_PATH
:=
$(
abspath
$(
lastword
$(MAKEFILE_LIST)
))
ROOT_DIR
:=
$(
patsubst
%/,%,
$(
dir
$(MKFILE_PATH)
))
DTK
_PATH
:=
/opt/dtk
ROCM
_PATH
:=
/opt/dtk
GPP
:=
/usr/bin/g++
ifeq
($(CUDA_HOME),)
CUDA_HOME
:=
$(
shell
which nvcc | rev |
cut
-d
'/'
-f3-
| rev
)
...
...
@@ -101,13 +101,13 @@ 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
$(GPP)
-std
=
c++14
-D__HIP_PLATFORM_AMD__
-DBUILD_CUDA
-shared
-fPIC
-I
$(
ROCM
_PATH)
/include
$(HIP_INCLUDE)
$(BUILD_DIR)
/ops.o
$(BUILD_DIR)
/kernels.o
$(FILES_CPP)
$(HIP_LIB)
-o
./bitsandbytes/libbitsandbytes_hip_nocublaslt.so
env
:
@
echo
"ENVIRONMENT"
...
...
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