Comments (3)
AMDG
On 10/19/2014 08:36 PM, Nenad Vukicevic wrote:
I took a look at this and created an example code:
shared int aint; int main () { aint = 2; }
and IR looks like this (-O0 -S -emit-llvm)
define i32 @upc_main() #0 { entry: store i32 2, i32 addrspace(16)* inttoptr (i64 shl (i64 ptrtoint (i32* @aint to i64), i64 20) to i32 addrspace(16)*), align 4 ret i32 0 }
I don't know at what point this IR is being printed, but I don't see any OR instruction for thread and address. In packed version I can clearly see the OR instruction.
Based on running tests I can see that test failes from time to time as barrier is failing (it has some shared stores and atomic operations).
I doubt this is the problem. The thread is zero
which causes the or to be folded. The packed
version is too complex for the trivial constant
folding that happens with -O0.
In Christ,
Steven Watanabe
from llvm-upc.
AMDG
On 10/19/2014 08:36 PM, Nenad Vukicevic wrote:
Based on running tests I can see that test failes from time to time as barrier is failing (it has some shared stores and atomic operations).
It appears that upc_wait is returning too soon.
In Christ,
Steven Watanabe
from llvm-upc.
Fixed by clangupc/clang-upc@8c2f224
from llvm-upc.
Related Issues (17)
- UPC-IR: Configuring with autoconf tools fails HOT 2
- Build failure on OpenBSD-5.6 HOT 2
- Build failure on NetBSD-6.1.5 HOT 1
- Build failure (bad linker flags) on Solaris-11 HOT 3
- merge of 3.8 broke configure (unresolved conflicts) HOT 3
- Policy "CMP0048" is not known to this version of CMake. HOT 3
- Build failure (unittests) on Solaris HOT 10
- Solaris: wrong gcc install selected HOT 11
- cmake-specific build failure on Solaris HOT 6
- UPC-IR: parametrize Remote Pointer (RP) HOT 1
- UPC-IR: runtime interface
- UPC-IR: typed runtime interface HOT 2
- Test issue HOT 1
- UPC-IR: disable LLVM UPC lowering pass if IR emit requested HOT 1
- UPC-IR: atomic store operand must be power-of-two byte-sized integer HOT 1
- UPC-IR: disable LLVM IR for 32 bit machines HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from llvm-upc.