-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Labels
bugSomething isn't workingSomething isn't working
Description
See PR 131.
typedef struct {
union Algorithm {
cudnnConvolutionFwdAlgo_t convFwdAlgo;
cudnnConvolutionBwdFilterAlgo_t convBwdFilterAlgo;
cudnnConvolutionBwdDataAlgo_t convBwdDataAlgo;
cudnnRNNAlgo_t RNNAlgo;
cudnnCTCLossAlgo_t CTCLossAlgo;
} algo;
} cudnnAlgorithm_t;The generated code is like:
cudnnAlgorithm_t *ava_self;
ava_self = (cudnnAlgorithm_t *) (&algorithm);
union Algorithm *__algorithm_a_0_algo;
__algorithm_a_0_algo = (union Algorithm *)(&(algorithm).algo);
union Algorithm *__algorithm_b_0_algo;
__algorithm_b_0_algo = (union Algorithm *)(&(__call->algorithm).algo); {
union Algorithm *ava_self;
ava_self = (union Algorithm *)(&*__algorithm_a_0_algo);
cudnnCTCLossAlgo_t *__algorithm_a_1_CTCLossAlgo;
__algorithm_a_1_CTCLossAlgo = (cudnnCTCLossAlgo_t *) (&(*__algorithm_a_0_algo).CTCLossAlgo);
cudnnCTCLossAlgo_t *__algorithm_b_1_CTCLossAlgo;
__algorithm_b_1_CTCLossAlgo = (cudnnCTCLossAlgo_t *) (&(*__algorithm_b_0_algo).CTCLossAlgo); {
*__algorithm_a_1_CTCLossAlgo = (cudnnCTCLossAlgo_t) * __algorithm_b_1_CTCLossAlgo;
*__algorithm_a_1_CTCLossAlgo = *__algorithm_b_1_CTCLossAlgo;
}
...Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working