Skip to content
Snippets Groups Projects
Commit 7bd29f55 authored by Heldmann, Tim's avatar Heldmann, Tim
Browse files

Remove some warnings from demo script, and cleanup some lines

parent 0ff85612
No related branches found
No related tags found
No related merge requests found
mkdir build
cd build
cmake -DUSE_MPI=0 -DCMAKE_EXPORT_COMPILE_COMMANDS=ON ..
cp compile_commands.json ../compile_commands.json
cd ..
# this is the cgcollector from metacg
cgcollector -p build --metacg-format-version=2 lulesh.cc
cgcollector -p build --metacg-format-version=2 lulesh-init.cc
cgcollector -p build --metacg-format-version=2 lulesh-comm.cc
cgcollector -p build --metacg-format-version=2 lulesh-util.cc
cgcollector -p build --metacg-format-version=2 lulesh-viz.cc
cgcollector -p build --extra-arg=-I$(clang -print-resource-dir)/include --metacg-format-version=2 lulesh.cc
cgcollector -p build --extra-arg=-I$(clang -print-resource-dir)/include --metacg-format-version=2 lulesh-init.cc
cgcollector -p build --extra-arg=-I$(clang -print-resource-dir)/include --metacg-format-version=2 lulesh-comm.cc
cgcollector -p build --extra-arg=-I$(clang -print-resource-dir)/include --metacg-format-version=2 lulesh-util.cc
cgcollector -p build --extra-arg=-I$(clang -print-resource-dir)/include --metacg-format-version=2 lulesh-viz.cc
echo "null" > merged.ipcg
#this is cgmerge from metacg
......@@ -13,15 +19,7 @@ cgmerge merged.ipcg *.ipcg
# as it is buggy in the current metacg release
sed -i 's/fileProperties/FileProperties/g' merged.ipcg
#this currently uses hardcoded include directories as to be compatible with C++
#this is a terrible solution and is currently being worked on
#CTUApex --extra-arg=-I/home/groups/da_sc/moduletree/packages-2023-08-24/.gcc/11.2.0/clang/15.0.7.debug/include \
#--extra-arg=-I/opt/rh/gcc-toolset-12/root/usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12 \
#--extra-arg=-I/opt/rh/gcc-toolset-12/root/usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/x86_64-redhat-linux \
#--extra-arg=-I/opt/rh/gcc-toolset-12/root/usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/backward \
#--extra-arg=-I/work/groups/da_sc/moduletree/packages-2023-08-24/.gcc/8.5.0/clang/debug.15.0.7/lib/clang/15.0.7/include \
#--extra-arg=-I/usr/local/include \
#--extra-arg=-I/usr/include \
CTUApex \
--cg-file=merged.ipcg \
--extra-arg=-DUSE_MPI=0 \
......@@ -29,4 +27,4 @@ CTUApex \
lulesh.cc lulesh-init.cc lulesh-comm.cc lulesh-util.cc lulesh-viz.cc 2> log.log
#This should result in 5 files with the names lulesh.mini.cc lulesh-init.mini.cc lulesh-comm.mini.cc lulesh-util.mini.cc lulesh-viz.mini.cc
#which should then be able to be compiled
#The resulting binary is currently not able to be run, as no wrapper script can be generated the does the memory setup
\ No newline at end of file
#The resulting binary is currently not able to be run, as no wrapper script can be generated the does the memory setup
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment