Compare commits

..

5 Commits

Author SHA1 Message Date
Gallo Alejandro
5c41fb65e4 Fix ctf.mk for CUDA 2022-09-13 14:15:39 +02:00
4e2de62508 Fix memory consumption in test-cublas-parallel-atrip 2022-09-12 20:19:41 +02:00
81e89274ab Fix yaml workflows syntax 2022-09-12 20:02:51 +02:00
5ca94e3238 Try cuda in github ci 2022-09-12 20:00:46 +02:00
6effcbcdc8 Add ci for cuda branch too 2022-09-12 19:58:18 +02:00
3 changed files with 16 additions and 6 deletions

View File

@ -3,16 +3,16 @@ name: CI
on: on:
push: push:
branches: [ master ] branches: [ master, cuda ]
pull_request: pull_request:
branches: [ master ] branches: [ master, cuda ]
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
env: env:
WITH_CURRENT_SHELL: "nix-shell --argstr compiler ${{matrix.compiler}} --run" WITH_CURRENT_SHELL: "nix-shell --argstr compiler ${{matrix.compiler}} --arg cuda ${{matrix.cuda}} --run"
WITH_SHELL: "nix-shell ../../shell.nix --argstr compiler ${{matrix.compiler}} --run" WITH_SHELL: "nix-shell ../../shell.nix --argstr compiler ${{matrix.compiler}} --arg cuda ${{matrix.cuda}} --run"
strategy: strategy:
@ -33,6 +33,9 @@ jobs:
- clang7 - clang7
- clang6 - clang6
- clang5 - clang5
cuda:
- false
- true
steps: steps:
- uses: actions/checkout@v2.3.4 - uses: actions/checkout@v2.3.4

View File

@ -137,7 +137,7 @@ int main(int argc, char** argv) {
printf("no: %ld\n", no); printf("no: %ld\n", no);
printf("nv: %ld\n", nv); printf("nv: %ld\n", nv);
printf("SIZE %f GB\n", (3 * nv * oo printf("SIZE %f GB\n", (3 * nv * oo
+ 6 * oo * nv + 6 * no * nv
+ 3 * oo + 3 * oo
+ 3 * ooo + 3 * ooo
+ 1 * ooo + 1 * ooo

View File

@ -14,10 +14,17 @@ $(CTF_SRC_PATH)/configure:
git clone $(CTF_GIT_REPOSITORY) $(@D) git clone $(CTF_GIT_REPOSITORY) $(@D)
cd $(@D) && git checkout $(CTF_COMMIT) cd $(@D) && git checkout $(CTF_COMMIT)
# Here make sure that ctf does not builld with CUDA support
# since it is broken anyways
#
# Also we patch the file kernel.h because it mostl
# doesn't work when we try to include ctf in a CUDACC
# compiler code.
$(CTF_BUILD_PATH)/Makefile: $(CTF_SRC_PATH)/configure $(CTF_BUILD_PATH)/Makefile: $(CTF_SRC_PATH)/configure
mkdir -p $(CTF_BUILD_PATH) mkdir -p $(CTF_BUILD_PATH)
cd $(CTF_BUILD_PATH) && \ cd $(CTF_BUILD_PATH) && \
$(abspath $(CTF_SRC_PATH))/configure $(CTF_CONFIG_FLAGS) $(abspath $(CTF_SRC_PATH))/configure NVCC="" $(CTF_CONFIG_FLAGS)
sed -i s/CUDACC/ATRIP_NOT_CUDACC/g ${CTF_SRC_PATH}/src/interface/kernel.h
$(CTF_STATIC_LIB): $(CTF_BUILD_PATH)/Makefile $(CTF_STATIC_LIB): $(CTF_BUILD_PATH)/Makefile