Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LLVM 18 #123

Merged
merged 36 commits into from
Mar 12, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
bd60141
gh: bump code version
csegarragonz Feb 9, 2024
1158e8b
faasmtools: bump llvm version
csegarragonz Feb 9, 2024
2aa9661
llvm: changes for latest wasi-libc and wasi-sdk
csegarragonz Feb 12, 2024
6afffa4
llvm: install libclang_rt.builitins-wasm32.a
csegarragonz Feb 13, 2024
9969423
cmake: change system name from Wasm to WASI to align with wasi-sdk
csegarragonz Feb 13, 2024
a61d8b0
faasmtools: enable linker feature sign extension as it is the default…
csegarragonz Feb 13, 2024
852fc4a
libs: install in <sysroot>/lib/wasm32-wasi and copy imports appropria…
csegarragonz Feb 13, 2024
53f6567
docker: enable some features
csegarragonz Feb 13, 2024
4c65d67
libs: install libraries and headers in the right location
csegarragonz Feb 13, 2024
29403d4
llvm: fix libclanv_rt.builitins installation
csegarragonz Feb 13, 2024
f7fe16b
mpi: more fixes to the cmake file
csegarragonz Feb 13, 2024
65cc765
wasi: attempt at having two different targets for threads and non-thr…
csegarragonz Feb 13, 2024
0f0125d
func: comment out temporarily disabled functions
csegarragonz Feb 15, 2024
4242785
func: move threaded functions to separate top-level directory
csegarragonz Feb 16, 2024
d69921e
tasks: configurable compilation for different targets
csegarragonz Feb 16, 2024
47be01e
threads: support for pthread apis
csegarragonz Feb 16, 2024
0b67978
cpython: changes to make cpython build work
csegarragonz Feb 19, 2024
022ab93
llvm: add c compiler target flag for compiler-rt build
csegarragonz Feb 19, 2024
eaaf4d5
libs: fix use of (auto)conf with different sysroots
csegarragonz Feb 19, 2024
6cf9946
more fixes
csegarragonz Feb 19, 2024
ca0d78e
faasmtools: change default target when building a threaded application
csegarragonz Feb 20, 2024
2ca4ee6
llvm: bump to version 18 rc2 to fix the frontend bug with openmp
csegarragonz Feb 20, 2024
17e844e
llvm: no harm in using clang-18 to build llvm-18
csegarragonz Feb 20, 2024
676ce38
llvm: use clang-17 for native compilation
csegarragonz Feb 20, 2024
5a2ec10
nits: fix python formatting
csegarragonz Feb 20, 2024
c785471
nits: fix cpp formatting
csegarragonz Feb 20, 2024
1460297
nit: run python formatting
csegarragonz Feb 21, 2024
4b6e62f
func: build all threads func
csegarragonz Feb 21, 2024
27aae15
gha: skip code formatting with clang-format-17
csegarragonz Feb 21, 2024
89c98da
clang-format: fix formatting after llvm bump
csegarragonz Mar 1, 2024
8d5c4a9
nits: clang-format passing with llvm 17
csegarragonz Mar 4, 2024
e42390a
tasks(libs): build threads/non-threads in different directories
csegarragonz Mar 5, 2024
bfad3a8
docker: fix strange libfaasm overwrite
csegarragonz Mar 5, 2024
731744f
funcs: set the threads target when appropriate
csegarragonz Mar 5, 2024
1e23e89
nits: self-review
csegarragonz Mar 12, 2024
16b97f2
libffi: fix build by passing --host flag to configure
csegarragonz Mar 12, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
llvm: use clang-17 for native compilation
  • Loading branch information
csegarragonz committed Feb 20, 2024
commit 676ce382ad4a78b4107b0d3f2f16539686398a94
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
password: ${{ secrets.ACR_SERVICE_PRINCIPAL_PASSWORD }}
- name: "Build and push cpp-sysroot container"
id: docker_build
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5.1.0
with:
push: true
file: docker/cpp-sysroot.dockerfile
Expand Down
5 changes: 3 additions & 2 deletions faasmtools/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@
# Versioning
VERSION_FILE = join(PROJ_ROOT, "VERSION")

# LLVM variables
# LLVM_VERSION = "17.0.6"
# LLVM version for C/C++ to x86 compilation
LLVM_NATIVE_VERSION = "17.0.6"
# LLVM version for C/C++ to WASM compilation
LLVM_VERSION = "18.1.0-rc2"
LLVM_DIR = join("/opt", "llvm-project")
LLVM_MAKEFILE = join(PROJ_ROOT, "LLVM.makefile")
Expand Down
4 changes: 2 additions & 2 deletions tasks/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
FAASM_NATIVE_DIR,
get_faasm_build_env_dict,
)
from faasmtools.env import LLVM_VERSION, PROJ_ROOT
from faasmtools.env import LLVM_NATIVE_VERSION, PROJ_ROOT
from os.path import exists, join
from os import environ, makedirs
from shutil import rmtree
Expand Down Expand Up @@ -38,7 +38,7 @@ def build_faasm_lib(
makedirs(build_dir, exist_ok=True)

if native:
llvm_major = LLVM_VERSION.split(".")[0]
llvm_major = LLVM_NATIVE_VERSION.split(".")[0]
extras = [
"-DCMAKE_C_COMPILER=/usr/bin/clang-{}".format(llvm_major),
"-DCMAKE_CXX_COMPILER=/usr/bin/clang++-{}".format(llvm_major),
Expand Down
Loading