Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
aml
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
28
Issues
28
List
Boards
Labels
Milestones
Merge Requests
6
Merge Requests
6
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
argo
aml
Commits
30477080
Commit
30477080
authored
Aug 28, 2019
by
ndenoyelle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add build stage on gpu machine
parent
001799b6
Pipeline
#8358
failed with stages
in 70 minutes and 26 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
13 deletions
+33
-13
.gitlab-ci.yml
.gitlab-ci.yml
+20
-0
src/Makefile.am
src/Makefile.am
+13
-13
No files found.
.gitlab-ci.yml
View file @
30477080
...
...
@@ -90,6 +90,26 @@ make:knl:
-
config.log
-
tests/*.log
make:cuda:
stage
:
build
except
:
-
/^wip.*/
-
/^WIP.*/
tags
:
-
gpu
script
:
-
./autogen.sh
-
mkdir build
-
CFLAGS="-std=c99 -pedantic -Wall -Wextra -Werror" ./configure --prefix=`pwd`/build
-
test $(grep "RUN_CUDA" include/config.h | cut -f 3 -d ' ') -eq
1
-
make -j
-
make check
artifacts
:
when
:
on_failure
paths
:
-
config.log
-
tests/*.log
readthedocs
:
stage
:
docs
except
:
...
...
src/Makefile.am
View file @
30477080
...
...
@@ -60,18 +60,18 @@ libaml_la_SOURCES+=area/cuda.c
libaml_la_LDFLAGS
+=
-lcudart
# Build .cu sources containing device code.
#
# CUDA_LO_FILES= # .lo
files result of .cu files.
# CUDA_FLAGS=--x=cu
#
#
.cu.lo: .cu
#
$(NVCC) $(CUDA_FLAGS) -I$(top_srcdir)/include -dc -o $<.cu.o $<
#
$(NVCC) $(CUDA_FLAGS) -I$(top_srcdir)/include -c -o $<.o $<
#
$(top_builddir)/o2lo $@ $<.cu.o $<.o
#
#
libamlcuda.la: $(CUDA_LO_FILES)
#
$(LIBTOOL) --tag=CC --mode=link $(NVCC) -dlink -o $@ $< -lcudart
#
# libaml_la_LIBADD+
=libamlcuda.la
CUDA_LO_FILES
=
layout/cuda.lo
#
files result of .cu files.
CUDA_FLAGS
=
--x
=
cu
-Xcompiler
=
-fPIC
.cu.lo
:
.cu
$(NVCC)
$(CUDA_FLAGS)
-I
$(top_srcdir)
/include
-dc
-o
$<
.cu.o
$<
$(NVCC)
$(CUDA_FLAGS)
-I
$(top_srcdir)
/include
-c
-o
$<
.o
$<
$(top_builddir)
/o2lo
$@
$<
.cu.o
$<
.o
libamlcuda.la
:
$(CUDA_LO_FILES)
$(LIBTOOL)
--tag
=
CC
--mode
=
link
$(NVCC)
-dlink
-o
$@
$<
-lcudart
libaml_la_LIBADD
=
libamlcuda.la
endif
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