Bonjour,

j'ai cette erreur quand je compile mon code:

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
__device__ __host__ inline double cost(int* const algSeq, int s1, int s2){
	double l_score=0;
	unsigned int algSeqOffset1=s1*global_max_length, algSeqOffset2=s2*global_max_length;
	for(int i=0; i<global_max_length; i++){
		AA res1= (AA) algSeq[algSeqOffset1+i], res2 = (AA) algSeq[algSeqOffset2+i];
		l_score+=d_costMatrix[res1+res2*AA_NUMBER];
	}
	return l_score;
}

__device__ __host__ inline int onlyGapPenalty(int* const algSeq){
	int p_score=0;
	int seqOffset[nb_seq];
	for(int i=0; i<nb_seq; i++) seqOffset[i]=i*global_max_length;
	
	for(int i=0; i<global_max_length; i++){
		int l_score=0;
		for(int j=0; j<nb_seq; j++){
			l_score+=algSeq[seqOffset[j]+i];
		}
		if ((l_score>=GO*nb_seq)&&(l_score<GT*nb_seq)) p_score+=(-10);
	}
	return p_score;
}
j'ai mis en gras, la ligne où l'erreur est annoncé.

Je comprends pas du tout le problème.

Alaninho