Skip to content

Commit 14ba729

Browse files
committed
resolving conflicts
2 parents 3153cf6 + c5b98e1 commit 14ba729

44 files changed

Lines changed: 9702 additions & 1858 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 83 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,93 @@ on:
33
push:
44
branches:
55
- main
6-
- base
6+
- base
77

88
permissions:
99
contents: write
1010

1111
jobs:
12+
build_cpu:
13+
name: Build CPU (Linux, macOS)
14+
runs-on: ${{ matrix.os }}
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
os: [ubuntu-latest, macos-latest]
19+
steps:
20+
- name: Checkout Code
21+
uses: actions/checkout@v3
22+
23+
- name: Install dependencies
24+
run: bash ./install/installDependencies.sh
25+
26+
- name: Build CPU
27+
run: |
28+
cd install
29+
bash ./installDIPPER.sh cpu
30+
31+
- name: Run CPU binary
32+
run: ./bin/dipper_cpu --help
33+
34+
build_gpu:
35+
name: Build GPU (Linux, if available)
36+
runs-on: ubuntu-latest
37+
steps:
38+
- name: Checkout Code
39+
uses: actions/checkout@v3
40+
41+
- name: Detect NVIDIA GPU + CUDA
42+
id: detect_nvidia
43+
run: |
44+
if command -v nvidia-smi >/dev/null 2>&1 && nvidia-smi -L >/dev/null 2>&1 && command -v nvcc >/dev/null 2>&1; then
45+
echo "available=true" >> "${GITHUB_OUTPUT}"
46+
else
47+
echo "available=false" >> "${GITHUB_OUTPUT}"
48+
fi
49+
50+
- name: Detect AMD GPU + HIP
51+
id: detect_amd
52+
run: |
53+
if command -v hipcc >/dev/null 2>&1; then
54+
if command -v rocminfo >/dev/null 2>&1 && rocminfo >/dev/null 2>&1; then
55+
echo "available=true" >> "${GITHUB_OUTPUT}"
56+
exit 0
57+
fi
58+
if command -v rocm-smi >/dev/null 2>&1 && rocm-smi -i >/dev/null 2>&1; then
59+
echo "available=true" >> "${GITHUB_OUTPUT}"
60+
exit 0
61+
fi
62+
fi
63+
echo "available=false" >> "${GITHUB_OUTPUT}"
64+
65+
- name: Install dependencies
66+
if: steps.detect_nvidia.outputs.available == 'true' || steps.detect_amd.outputs.available == 'true'
67+
run: bash ./install/installDependencies.sh
68+
69+
- name: Build NVIDIA GPU
70+
if: steps.detect_nvidia.outputs.available == 'true'
71+
run: |
72+
cd install
73+
bash ./installDIPPER.sh cuda
74+
75+
- name: Run NVIDIA GPU binary
76+
if: steps.detect_nvidia.outputs.available == 'true'
77+
run: ./bin/dipper --help
78+
79+
- name: Build AMD GPU
80+
if: steps.detect_amd.outputs.available == 'true'
81+
run: |
82+
cd install
83+
bash ./installDIPPER.sh hip
84+
85+
- name: Run AMD GPU binary
86+
if: steps.detect_amd.outputs.available == 'true'
87+
run: ./bin/dipper --help
88+
89+
- name: Skip GPU build
90+
if: steps.detect_nvidia.outputs.available != 'true' && steps.detect_amd.outputs.available != 'true'
91+
run: echo "No GPU/toolchain detected. Skipping GPU build."
92+
1293
deploy:
1394
name: Deploy Job
1495
runs-on: ubuntu-latest
@@ -31,4 +112,4 @@ jobs:
31112
run: |
32113
pip install mkdocs-material
33114
pip install "mkdocs-material[imaging]"
34-
mkdocs gh-deploy --force
115+
mkdocs gh-deploy --force

.vscode/settings.json

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
{
2+
"files.associations": {
3+
"queue": "cpp",
4+
"cctype": "cpp",
5+
"clocale": "cpp",
6+
"cmath": "cpp",
7+
"csetjmp": "cpp",
8+
"csignal": "cpp",
9+
"cstdarg": "cpp",
10+
"cstddef": "cpp",
11+
"cstdio": "cpp",
12+
"cstdlib": "cpp",
13+
"cstring": "cpp",
14+
"ctime": "cpp",
15+
"cwchar": "cpp",
16+
"cwctype": "cpp",
17+
"any": "cpp",
18+
"array": "cpp",
19+
"atomic": "cpp",
20+
"strstream": "cpp",
21+
"bit": "cpp",
22+
"bitset": "cpp",
23+
"cfenv": "cpp",
24+
"charconv": "cpp",
25+
"chrono": "cpp",
26+
"cinttypes": "cpp",
27+
"codecvt": "cpp",
28+
"compare": "cpp",
29+
"complex": "cpp",
30+
"concepts": "cpp",
31+
"condition_variable": "cpp",
32+
"coroutine": "cpp",
33+
"cstdint": "cpp",
34+
"cuchar": "cpp",
35+
"deque": "cpp",
36+
"forward_list": "cpp",
37+
"list": "cpp",
38+
"map": "cpp",
39+
"set": "cpp",
40+
"unordered_map": "cpp",
41+
"unordered_set": "cpp",
42+
"vector": "cpp",
43+
"exception": "cpp",
44+
"algorithm": "cpp",
45+
"functional": "cpp",
46+
"iterator": "cpp",
47+
"memory": "cpp",
48+
"memory_resource": "cpp",
49+
"numeric": "cpp",
50+
"optional": "cpp",
51+
"random": "cpp",
52+
"ratio": "cpp",
53+
"string": "cpp",
54+
"string_view": "cpp",
55+
"system_error": "cpp",
56+
"tuple": "cpp",
57+
"type_traits": "cpp",
58+
"utility": "cpp",
59+
"fstream": "cpp",
60+
"future": "cpp",
61+
"initializer_list": "cpp",
62+
"iomanip": "cpp",
63+
"iosfwd": "cpp",
64+
"iostream": "cpp",
65+
"istream": "cpp",
66+
"limits": "cpp",
67+
"mutex": "cpp",
68+
"new": "cpp",
69+
"numbers": "cpp",
70+
"ostream": "cpp",
71+
"ranges": "cpp",
72+
"regex": "cpp",
73+
"scoped_allocator": "cpp",
74+
"shared_mutex": "cpp",
75+
"span": "cpp",
76+
"sstream": "cpp",
77+
"stdexcept": "cpp",
78+
"stop_token": "cpp",
79+
"streambuf": "cpp",
80+
"thread": "cpp",
81+
"typeindex": "cpp",
82+
"typeinfo": "cpp",
83+
"valarray": "cpp",
84+
"variant": "cpp",
85+
"semaphore": "cpp"
86+
}
87+
}

0 commit comments

Comments
 (0)