chapel Questions

3

I know that questions about multi-threading performance in Julia have already been asked (e.g. here), but they involve fairly complex code in which many things could be at play. Here, I am running ...
Inveterate asked 24/2, 2021 at 2:13

1

Solved

I'm trying to run Chapel in multi-locale mode with Slurm. However, 'make check' fails. Could someone help me with that? I used Chapel 1.23.0. Here are the actual commands I used: cd chapel-1.23.0/ ...
Rachellerachis asked 16/1, 2021 at 7:23

2

Solved

I have the following Chapel code. proc update(x: int(32)) { return 2*x; } proc dynamics(x: int(32)) { return update(x); } writeln(dynamics(7)); I would like to send some kind of callback to ...
Colson asked 23/5, 2020 at 0:59

1

Solved

I'm trying to see if I can use Chapel for writing parallel code for use in a Python-based climate model: https://github.com/CliMT/climt I don't have any experience with Chapel, but it seems very p...
Ansley asked 11/10, 2019 at 18:0

1

Solved

I'm implementing a distributed version of the Barnes-Hut n-body simulation in Chapel. I've already implemented the sequential and shared memory versions which are available on my GitHub. I'm follo...
Larcener asked 26/2, 2019 at 12:53

2

Solved

Using writef(), I can control the output precision of a floating-point number, for example: writef( "%20.15dr\n", 1.0 / 3.0 ); // 0.333333333333333 but if I use writeln() for convenience, the nu...
Intendance asked 23/1, 2019 at 16:51

1

I am trying to implement an SOR, successive over relaxation, program in Chapel for multi-locale, but with local memory so I want to distribute rows among the locales explicitly. I already have resh...
Mooneye asked 25/11, 2018 at 4:43

1

Solved

I am learning Chapel and have worked with blockdist but I can't figure out how can I distribute a 2-dimension array in row wise fashion among locales.
Titanesque asked 19/11, 2018 at 6:17

1

Solved

I'd like to try out classes and polymorphism in Chapel, so I am trying to get the following example code to work: module SomeAnimals { class Animal { } class Bird: Animal { } class Fish: A...
Ribbentrop asked 2/8, 2018 at 20:30

1

Solved

Chapel domains have two sets of methods domain.low, domain.high and domain.first, domain.last What are the various cases where these return different results (i.e when is domain.first != dom...
Extractor asked 13/7, 2018 at 19:53

2

Solved

Suppose I have class Student, BadStudent:Student, GoodStudent:Student and ExcellentStudent: Student. I want a class method to only operate on Good and Exceptional students. Something like: class A...
Whoever asked 23/5, 2018 at 0:31

1

Solved

I've been trying out Chapel off and on over the past year or so. I have used C and C++ briefly in the past, but most of my experience is with dynamic languages such as Python, Ruby, and Erlang more...
Antoninaantonino asked 23/4, 2018 at 23:15

2

Solved

I have a hypergraph data structure with two arrays, one for edges, and one for vertices (similar to bipartite graph). I have a problem with resizing the arrays, so I tried the simplified example: ...
Disapproval asked 5/4, 2018 at 22:44

1

Solved

Let's say I'm generating tuples and I want to concatenate them as they come. How do I do this? The following does element-wise addition: if ts = ("foo", "cat"), t = ("bar", "dog") ts += t gives t...
Hl asked 26/1, 2018 at 0:30

2

Solved

The following code is my code for calculating pi = 3.1415... approximately using this formula: use Time; var timer = new Timer(); config const n = 10**9; var x = 0.0, s = 0.0; // timer.start(); ...
Nimbus asked 29/11, 2017 at 21:3

2

Solved

I looked at the writef() documentation for any bool specifier and there didn't seem to be any. In a Chapel program I have: ... config const verify = false; /* that works but I want to use writef(...
Rundell asked 11/11, 2017 at 22:21

1

Solved

I'm trying to return a reference to a slice of an array , but am getting the following compile-time error (where the offending line is in slice test.chpl:9: error: illegal expression to return b...
Confiteor asked 7/7, 2017 at 15:44

1

Solved

Unlike other languages, there seems no allocate or new syntax in Chapel for allocating arrays on the heap, but rather use the usual "declaration"-like syntax. For example, in the following code, I ...
Upsilon asked 6/6, 2017 at 1:52
1

© 2022 - 2024 — McMap. All rights reserved.