Compare commits
5 Commits
20c29ed815
...
5c41fb65e4
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5c41fb65e4 | ||
| 4e2de62508 | |||
| 81e89274ab | |||
| 5ca94e3238 | |||
| 6effcbcdc8 |
11
.github/workflows/main.yml
vendored
11
.github/workflows/main.yml
vendored
@ -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
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user