Hello.
So I downloaded the berkeley_upc-2019.4.4.tar, unzipped and went inside , created a directory named "dir".
Then I ran the following commands (outside of the directory "dir", inside the folder
berkeley_upc-2019.4.4
) :
Then, I created a .upc file (the sample hello world code in the tutorial). I tried to compile it using "upcc ex.upc". But now it says, am using windows subsystem for linux.
It clearly means something went wrong in the installation but I can not figure out where/what.
I tried "env UPCC_FLAGS= ./upcc --norc --version " inside the "dir" directory. The following is the result. It looks like it os somewhat working but still whenever I try to use "upcc ex.upc" it says "upcc Command not found".
This is upcc (the Berkeley Unified Parallel C compiler), v. 2019.4.4
(getting remote translator settings...)
----------------------+---------------------------------------------------------
UPC Runtime | v. 2019.4.4, built on Oct 1 2019 at 17:19:34
----------------------+---------------------------------------------------------
UPC-to-C translator | v. 2.28.0, built on Jul 19 2018 at 20:29:47
| host aphid linux-x86_64/64
| gcc v4.2.4 (Ubuntu 4.2.4-1ubuntu4)
----------------------+---------------------------------------------------------
Translator location |
http://upc-translator.lbl.gov/upcc-2019.4.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 | 019.4.0.cgi' '--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,nothrille,segment_fast,os_linux,
| cpu_x86_64,cpu_64,cc_gnu,packedsptr,upc_io_64
----------------------+---------------------------------------------------------
Configure id | DESKTOP-N7M6UJU Tue Oct 1 16:52:17 DST 2019 rafi
----------------------+---------------------------------------------------------
Binary interface | 64-bit x86_64-unknown-linux-gnu
----------------------+---------------------------------------------------------
Runtime interface # | Runtime supports 3.0 -> 3.13: Translator uses 3.6
----------------------+---------------------------------------------------------
| --- BACKEND SETTINGS (for udp network) ---
----------------------+---------------------------------------------------------
C compiler | /usr/bin/gcc
| GNU/7.4.0/7.4.0
| gcc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0 Copyright
| (C) 2017 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-unused
| -Wunused-result -Wno-unused-parameter -Wno-address
----------------------+---------------------------------------------------------
linker | /usr/bin/g++
| GNU/7.4.0/7.4.0
| g++ (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0 Copyright
| (C) 2017 Free Software Foundation, Inc.
----------------------+---------------------------------------------------------
linker flags | -O2 -Wno-unused -Wunused-result -Wno-unused-parameter
| -Wno-address -L/mnt/c/upc/berkeley_upc-2019.4.4/dir/opt
| -L/mnt/c/upc/berkeley_upc-2019.4.4/dir/opt/umalloc
| -lupcr-udp-seq -lumalloc
| -L/mnt/c/upc/berkeley_upc-2019.4.4/dir/opt/gasnet/udp-c
| onduit -lgasnet-udp-seq
| -L/mnt/c/upc/berkeley_upc-2019.4.4/dir/opt/gasnet/other
| /amudp -lamudp -lrt -L/usr/lib/gcc/x86_64-linux-gnu/7
| -lgcc -lm
----------------------+---------------------------------------------------------