Displaying 2 results from an estimated 2 matches for "amb_temp".
2014 Aug 20
2
[LLVMdev] LLVM CreateStructGEP type assert error
...float step, 
//dlowell's argument
                               global RB_t *cB) {
	
	local float temp_on_cuda[BLOCK_SIZE][BLOCK_SIZE];
	local float power_on_cuda[BLOCK_SIZE][BLOCK_SIZE];
	local float temp_t[BLOCK_SIZE][BLOCK_SIZE]; // saving temporary temperature result
	float amb_temp = 80.0f;
	float step_div_Cap;
	float Rx_1,Ry_1,Rz_1;
	int bx = get_group_id(0);
	int by = get_group_id(1);
	int tx = get_local_id(0);
	int ty = get_local_id(1);
	step_div_Cap=step/Cap;
	Rx_1=1/Rx;
	Ry_1=1/Ry;
	Rz_1=1/Rz;
	// each block finally computes result for a small block
	// after N iter...
2014 Aug 20
2
[LLVMdev] LLVM CreateStructGEP type assert error
If I do M.dump(), at the top of the output I have:
%struct.RB = type opaque
Further down I have:
@.str18 = internal addrspace(2) constant [13 x i8] c"RB_t*\00"
However nowhere does it dump the full struct type when I call "M.dump()". I have it explicitly defined above the kernel in the kernel file, but LLVM doesn't seem to pick it up.
Opaque is a placeholder until it