Commit 30477080 authored by ndenoyelle's avatar ndenoyelle

add build stage on gpu machine

parent 001799b6
Pipeline #8358 failed with stages
in 70 minutes and 26 seconds
......@@ -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:
......
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment