Skip to content

Commit 4449bfb

Browse files
authored
Add C Kernels (#379)
1 parent 81fed93 commit 4449bfb

16 files changed

+291
-0
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,9 @@ message("Configure kernels: ...")
160160
configure_kernel("/share/jupyter/kernels/xcpp17/")
161161
configure_kernel("/share/jupyter/kernels/xcpp20/")
162162
configure_kernel("/share/jupyter/kernels/xcpp23/")
163+
configure_kernel("/share/jupyter/kernels/xc11/")
164+
configure_kernel("/share/jupyter/kernels/xc17/")
165+
configure_kernel("/share/jupyter/kernels/xc23/")
163166

164167
# Source files
165168
# ============
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"display_name": "C11",
3+
"env": {
4+
"PATH":"@XEUS_CPP_PATH@",
5+
"LD_LIBRARY_PATH":"@XEUS_CPP_LD_LIBRARY_PATH@"
6+
},
7+
"argv": [
8+
"@XEUS_CPP_KERNELSPEC_PATH@xcpp",
9+
"-f",
10+
"{connection_file}",
11+
"-resource-dir", "@XEUS_CPP_RESOURCE_DIR@","-xc",
12+
"-I", "@XEUS_CPP_INCLUDE_DIR@",
13+
"-std=c11"@XEUS_CPP_OMP@
14+
],
15+
"language": "c",
16+
"metadata": {"debugger": false
17+
}
18+
}
1.41 KB
Loading
2.8 KB
Loading
Lines changed: 59 additions & 0 deletions
Loading
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"display_name": "C11",
3+
"argv": [
4+
"@XEUS_CPP_KERNELSPEC_PATH@xcpp",
5+
"-resource-dir", "/lib/clang/@CPPINTEROP_LLVM_VERSION_MAJOR@",
6+
"-xc",
7+
"-std=c11",
8+
"-mllvm", "-enable-emscripten-sjlj",
9+
"-msimd128"
10+
],
11+
"language": "c",
12+
"metadata": {
13+
"debugger": false,
14+
"shared": {
15+
"libxeus.so": "lib/libxeus.so",
16+
"libclangCppInterOp.so": "lib/libclangCppInterOp.so"
17+
}
18+
}
19+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"display_name": "C17",
3+
"env": {
4+
"PATH":"@XEUS_CPP_PATH@",
5+
"LD_LIBRARY_PATH":"@XEUS_CPP_LD_LIBRARY_PATH@"
6+
},
7+
"argv": [
8+
"@XEUS_CPP_KERNELSPEC_PATH@xcpp",
9+
"-f",
10+
"{connection_file}",
11+
"-resource-dir", "@XEUS_CPP_RESOURCE_DIR@","-xc",
12+
"-I", "@XEUS_CPP_INCLUDE_DIR@",
13+
"-std=c17"@XEUS_CPP_OMP@
14+
],
15+
"language": "c",
16+
"metadata": {"debugger": false
17+
}
18+
}
1.41 KB
Loading
2.8 KB
Loading
Lines changed: 59 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)