소스 검색

also check is_loaded without lock

Samuel Thibault 13 년 전
부모
커밋
7684f0b8b5
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/core/perfmodel/perfmodel.c

+ 1 - 1
src/core/perfmodel/perfmodel.c

@@ -131,7 +131,7 @@ extern pthread_rwlock_t registered_models_rwlock;
 
 void _starpu_load_perfmodel(struct starpu_perfmodel_t *model)
 {
-	if (!model)
+	if (!model || model->is_loaded)
 		return;
 
 	/* If the model has already been loaded, there is nothing to do */