Questions tagged [upc]

Unified Parallel C, a parallel extension to ISO C. A parallel programming language that exploits partitioned global address space (PGAS).

The C language extension UPC (Unified Parallel C) is based on the PGAS model. In this extension a number of threads work independently in a SPMD manner. A thread can access all the locations in the shared space, but there is data-thread affinity. Therefore, each thread has its local portion of the shared space. UPC supports static and dynamic memory allocations for both shared and private memory.

Unified Parallel C is a parallel extension to ISO C that exploits partitioned global address space (PGAS). You can find out more about it from the UPC web site.

23 questions
1
vote
1 answer

Problem running UPC code over a network : connecion refused

when I run a UPC code over a network of 2 nodes, with -v option enabled to give me detailed information of execution, I notice that the master node (glitch.rutgers.edu) tries to connect to itself as opposed to connect to it's neighbouring…
Sharat Chandra
  • 4,434
  • 7
  • 49
  • 66
1
vote
1 answer

MPI error due to Timeout in making connection to a remote process

I'm trying to run a NAS-UPC benchmark to study it's profile. UPC uses MPI to communicate with remote processes . When I run the benchmark with 64 processes , i get the following error upcrun -n 64 bt.C.64 "Timeout in making connection to remote…
Sharat Chandra
  • 4,434
  • 7
  • 49
  • 66
1
vote
1 answer

Can a struct in UPC have shared array as a field?

I need to store shared array inside a struct in UPC. Is it possible to do?
1
vote
1 answer

How to make Berkeley UPC work with complex numbers?

I am having some problems compiling a UPC code with complex numbers on my laptop (Mac OS-X; code will eventually run on a Linux CentOS machine) . I was trying to use FFTW in the code, but that returned a lot of errors. #include…
Guddu
  • 2,325
  • 2
  • 18
  • 23
1
vote
1 answer

UPC: Shared pointer to local memory

I'm learning unified parallel C for a high performance computing course. Can someone please explain why it's "not recommended" to have a shared pointer to local memory? The only reason I can think of is having a dangling pointer. Please see the…
syuja
  • 77
  • 1
  • 1
  • 6
1
vote
1 answer

UPC shared arrays

I want to declare a shared matrix in the global address space but not to perform any calculations by the UPC threads, but the GPU using CUDA. So is it possible to declare a UPC shared array in which the number elements in the array is NOT equal or…
Maddy
  • 2,114
  • 7
  • 30
  • 50
1
vote
1 answer

Compiling hybrid CUDA/MPI and CUDA/UPC

How can I compile MPI/CUDA and UPC/CUDA hybrid code? Do I have to separately compile them or can I use language constructs interchangeably and compile as a single source file? Could someone with previous experience in this area help? Thanks in…
Maddy
  • 2,114
  • 7
  • 30
  • 50
0
votes
1 answer

UPC allocating dynamic array and sorting

I try to read floats from a file and then sort them. Sort must be paralell UPC. That's current code: #include #include #include #include int lt_int( shared void *x, shared void *y ) { int…
ciembor
  • 7,189
  • 13
  • 59
  • 100
1
2