Displaying 3 results from an estimated 3 matches for "temp_t".
Did you mean:
temp_c
2008 Jul 21
4
how to speed up this for loop?
Could anyone tell me a better way to achieve the output of this for loop? It
seems to run quite slow. I'm sure there must be a more consise way to sum
from FN to LN, excluding positive values, for each row.
#sum between FN and LN, excluding positive values
for(i in 1:R){
for(j in FN[i]:LN[i]){
if(Temp[i,j]<0)
sum[i] <- sum[i] + sum(Temp[i,j])}}
Cheers,
R
--
View this message in
2014 Aug 20
2
[LLVMdev] LLVM CreateStructGEP type assert error
...float Ry,
float Rz,
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...
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