Hello upc-users,
I am fairly new to UPC as I have just started using it for a school project and I was wondering if it would be possible to add or remove certain C compiler flags set when building UPC, as I have encountered some padding issues with a C structure.
I was not able to find an explicit answer on how to add/remove flags, but if I missed one that you are aware of, please feel free to redirect me there.
Thanks
This is upcc (the Berkeley Unified Parallel C compiler), v. 2022.10.0
(getting remote translator settings...)
----------------------+---------------------------------------------------------
UPC Runtime | v. 2022.10.0, built on Dec 17 2023 at 23:50:38
----------------------+---------------------------------------------------------
UPC-to-C translator | v. 2.28.4, built on Oct 27 2022 at 22:40:34
| host
140-211-168-66-openstack.osuosl.org | linux-powerpc/64
| gcc v9.3.0
----------------------+---------------------------------------------------------
Translator location |
http://upc-translator.lbl.gov/upcc-2022.10.0.cgi----------------------+---------------------------------------------------------
networks supported | smp udp
----------------------+---------------------------------------------------------
default network | udp
----------------------+---------------------------------------------------------
pthreads support | available (if used, default is 2 pthreads per process)
----------------------+---------------------------------------------------------
Configured with | '--with-translator=
http://upc-translator.lbl.gov/upcc-2 | 022.10.0.cgi' '--with-cflags='
| '--prefix=/usr/local/berkeley_upc/opt'
| '--with-multiconf-magic=opt'
----------------------+---------------------------------------------------------
Configure features | trans_bupc,pragma_upc_code,driver_upcc,runtime_upcr,
| gasnet,upc_collective,upc_io,upc_memcpy_async,
| upc_memcpy_vis,upc_ptradd,upc_thread_distance,upc_tick,
| upc_sem,upc_dump_shared,upc_trace_printf,upc_trace_mask,
| upc_local_to_shared,upc_all_free,upc_atomics,pupc,
| upc_types,upc_castable,upc_nb,nodebug,notrace,nostats,
| nodebugmalloc,nogasp,segment_fast,os_linux,cpu_x86_64,
| cpu_64,cc_gnu,packedsptr,upc_io_64
----------------------+---------------------------------------------------------
Configure id | theo-GF63 Sun Dec 17 23:46:54 EET 2023 theo
----------------------+---------------------------------------------------------
Binary interface | 64-bit x86_64-pc-linux-gnu
----------------------+---------------------------------------------------------
Runtime interface # | Runtime supports 3.0 -> 3.14: Translator uses 3.6
----------------------+---------------------------------------------------------
| --- BACKEND SETTINGS (for udp network) ---
----------------------+---------------------------------------------------------
C compiler | /usr/bin/gcc
| GNU/11.4.0/11.4.0
| gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0 Copyright
| (C) 2021 Free Software Foundation, Inc.
----------------------+---------------------------------------------------------
C compiler flags | -O3 --param max-inline-insns-single=35000 --param
| inline-unit-growth=10000 --param
| large-function-growth=200000 -Wno-array-bounds
| -Wno-stringop-overflow -Wno-unused -Wunused-result
| -Wno-unused-parameter -Wno-address
----------------------+---------------------------------------------------------
linker | /usr/bin/g++
| GNU/11.4.0/11.4.0
| g++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0 Copyright
| (C) 2021 Free Software Foundation, Inc.
----------------------+---------------------------------------------------------
linker flags | -O2 -Wno-array-bounds -Wno-stringop-overflow
| -Wno-unused -Wunused-result -Wno-unused-parameter
| -Wno-address -L/usr/local/berkeley_upc/opt/lib
| -lupcr-udp-seq -lumalloc
| -L/usr/local/berkeley_upc/opt/lib -lgasnet-udp-seq
| -lamudp -L/usr/lib/gcc/x86_64-linux-gnu/11 -lgcc -lm
----------------------+---------------------------------------------------------