jiffyrune / gpuocelot

Automatically exported from code.google.com/p/gpuocelot
0 stars 0 forks source link

LLVM backend: position of volatile modifier for load should be changed #65

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.USE LLVM SVN version or version > 3.0
2.Compile SDK App MonteCarlo (nvcc version 4.0) and link against ocelot.
3.Run it on LLVM device backend

What is the expected output? What do you see instead?
Error Infomration: LLVM Parser failed: _Z27MonteCarloOneBlockPerOptionPfi: 
<string>:631:10: error: expected instruction opcode
        %r114 = volatile load float* %rt339, align 4;

Please use labels and text to provide additional information.
In LLVM 3.0, volatile modifier should be placed after load like " load volatile 
... "

Original issue reported on code.google.com by wangjin....@gmail.com on 27 Jan 2012 at 8:10

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Similar problem for App histogram, HSOpticalFlow, MonteCarlo, radixSorThrust, 
reduction, threadFenceReduction in SDK 4.1 with NVCC and Runtime 4.1

Original comment by wangjin....@gmail.com on 1 Feb 2012 at 11:45

GoogleCodeExporter commented 9 years ago
Modified LLVMInstruction to place 'volatile' keyword after instruction opcode 
name.

Original comment by arkerr@gmail.com on 7 Feb 2012 at 10:11