Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Deeplearning
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RADL
Deeplearning
Commits
6bbd9c61
Commit
6bbd9c61
authored
Mar 15, 2023
by
Gabriel Falk
Browse files
Options
Downloads
Patches
Plain Diff
Replace Makefile
parent
74a0f3c5
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Makefile
+31
-8
31 additions, 8 deletions
Makefile
with
31 additions
and
8 deletions
Makefile
+
31
−
8
View file @
6bbd9c61
BUILD_DIR
=
build
SRC_DIR
=
src
CC
=
g++
NVCC
=
nvcc
CXXFLAGS
=
-fopenmp
-O3
-Wextra
-std
=
c++11
CUDAFLAGS
=
-std
=
c++11
-arch
=
sm_75
all
:
$(BUILD_DIR)/deeplearning.o
gcc
-Wall
-o
$(
BUILD_DIR
)
/deeplearning
$(
BUILD_DIR
)
/deeplearning.o
-L
libonnx/src
-lonnx
-lm
$(BUILD_DIR)/deeplearning.o
:
$(SRC_DIR)/deeplearning.c
gcc
-Wall
-c
$(
SRC_DIR
)
/deeplearning.c
-I
libonnx/src
-o
$(
BUILD_DIR
)
/deeplearning.o
.PHONY
:
all clean
all
:
main
clean
:
rm
-f
build/
*
rm
-f
main main.o cudaKernels.o matrix.o test.o cudaLenet5.o tensor.o ops.o
main
:
main.o cudaKernels.o matrix.o test.o cudaLenet5.o tensor.o ops.o
$(
NVCC
)
-o
main main.o cudaKernels.o matrix.o test.o cudaLenet5.o tensor.o ops.o
-lcufft
main.o
:
main.cpp cudaKernels.h matrix.h test.h cudaLenet5.h tensor.h
$(
CC
)
$(
CXXFLAGS
)
-c
-o
main.o main.cpp
cudaKernels.o
:
cudaKernels.cu
$(
NVCC
)
$(
CUDAFLAGS
)
-c
cudaKernels.cu
matrix.o
:
matrix.cpp matrix.h
$(
CC
)
$(
CXXFLAGS
)
-c
-o
matrix.o matrix.cpp
test.o
:
test.cpp test.h
$(
CC
)
$(
CXXFLAGS
)
-c
-o
test.o test.cpp
cudaLenet5.o
:
cudaLenet5.cu
$(
NVCC
)
$(
CUDAFLAGS
)
-c
cudaLenet5.cu
tensor.o
:
tensor.cc tensor.h
$(
CC
)
$(
CXXFLAGS
)
-c
-o
tensor.o tensor.cc
ops.o
:
ops.cc tensor.h
$(
CC
)
$(
CXXFLAGS
)
-c
-o
ops.o ops.cc
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment