Re: UPC Install, compile and execution

43 views
Skip to first unread message
Message has been deleted

Nazmus Sakib

unread,
Oct 2, 2019, 6:22:16 PM10/2/19
to upc-...@lbl.gov
which has a similiar problem like mine.
I will email you again if I run into any issues .
Thank you.

On Wed, Oct 2, 2019 at 5:54 PM Nazmus Sakib <nazm...@gwmail.gwu.edu> wrote:
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 )  :

./configure
make
make hello-test
make install

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
----------------------+---------------------------------------------------------

Paul Hargrove

unread,
Oct 2, 2019, 7:07:09 PM10/2/19
to Nazmus Sakib, upc-users
Nazmus,

If you are using WSL (windows subsystem for linux), you should not need the Cygwin instructions at the link you quoted.  I suspect your installation completed, but you need to add to your PATH.

Unless you specified a non-default --prefix=... at configure time:
   export PATH=$PATH:/usr/local/berkeley_upc/bin
should be sufficient to add to your search path.

-Paul

--
You received this message because you are subscribed to the Google Groups "upc-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to upc-users+...@lbl.gov.
To view this discussion on the web visit https://groups.google.com/a/lbl.gov/d/msgid/upc-users/CABHz7nzuuoqOYPYf5m5TN%3DLUiQx0jjqA8CmnW-YhkifV3v7yJA%40mail.gmail.com.


--
Paul H. Hargrove <PHHar...@lbl.gov>
Computer Languages & Systems Software (CLaSS) Group
Computer Science Department
Lawrence Berkeley National Laboratory
Reply all
Reply to author
Forward
0 new messages