Repository: pytorch
Issue: [JIT] NVRTC unknown error
Labels: needs reproduction,oncall: jit,has workaround

## 🐛 Bug

I have consistently run into NVRTC unknown error. 

```RuntimeError: /pytorch-atg/torch/csrc/jit/fuser/cuda/fused_kernel.cpp:138: NVRTC_ERROR unknown```

I ran with `export PYTORCH_FUSION_DEBUG=1`

and I got this:
```
fusion code:

typedef unsigned char uint8_t;
typedef signed char int8_t;
typedef short int  int16_t;
typedef long long int int64_t;



#define NAN __int_as_float(0x7fffffff)
#define POS_INFINITY __int_as_float(0x7f800000)
#define NEG_INFINITY __int_as_float(0xff800000)

typedef unsigned int IndexType;
template<typename T, size_t N>
struct TensorInfo {
  T* data;
  IndexType sizes[N];
  IndexType strides[N];
};
template<typename T>
struct TensorInfo<T, 0> {
  T * data;
};


extern "C" __global__
void kernel_0(IndexType totalElements, TensorInfo<float,1> t0, TensorInfo<float,1> t1, TensorInfo<float,1> t2 ) {
  
  for (IndexType linearIndex = blockIdx.x * blockDim.x + threadIdx.x;
        linearIndex < totalElements;
        linearIndex += gridDim.x * blockDim.x) {
      // Convert `linearIndex` into an offset of tensor:
      IndexType t0_offset = 0;
      IndexType t0_linearIndex = linearIndex;
      
      //printf("tensor t0 sizes[0] = %d, strides[0] = %d\n", t0.sizes[0],t0.strides[0]);
      size_t t0_dimIndex0 = t0_linearIndex ;
      t0_offset += t0_dimIndex0 * t0.strides[0];
      IndexType t1_offset = 0;
      IndexType t1_linearIndex = linearIndex;
      
      //printf("tensor t1 sizes[0] = %d, strides[0] = %d\n", t1.sizes[0],t1.strides[0]);
      size_t t1_dimIndex0 = t1_linearIndex ;
      t1_offset += t1_dimIndex0 ;
      IndexType t2_offset = 0;
      IndexType t2_linearIndex = linearIndex;
      
      //printf("tensor t2 sizes[0] = %d, strides[0] = %d\n", t2.sizes[0],t2.strides[0]);
      size_t t2_dimIndex0 = t2_linearIndex ;
      t2_offset += t2_dimIndex0 ;
      
      // calculate the results
      float n0 = t0.data[t0_offset];
      int n1 = -72;
      int n2 = 1;
      float n3 = (n0 - ((float) n2)*((float) n1));
      float n4 = 5.000000e+00f;
      float n5 = n3 * n4;
      float n6 = ceilf(n5);
      int n7 = 0;
      int n8 = 721;
      float n9 = (n6<n7?n7:(n6>n8?n8:n6));
      t1.data[t1_offset] = n9;
      t2.data[t2_offset] = n6;
      
    }
}

Traceback (most recent call last):
  File "/av/python/av/experimental/toronto/experiments/intentnet/train.py", line 436, in <module>
    sys.exit(main())
  File "/av/python/av/experimental/toronto/experiments/intentnet/train.py", line 428, in main
    trainer.train_model()
  File "/av/python/av/experimental/toronto/experiments/intentnet/train.py", line 258, in train_model
    should_run_eval = self.train()
  File "/av/python/av/experimental/toronto/experiments/intentnet/train.py", line 181, in train
    voxel_img = self.preprocessor(batched_frames)
  File "/av/lib/python/torch/nn/modules/module.py", line 489, in __call__
    result = self.forward(*input, **kwargs)
RuntimeError: /pytorch-atg/torch/csrc/jit/fuser/cuda/fused_kernel.cpp:138: NVRTC_ERROR unknown
```

## To Reproduce
I am unable to repro yet. I am working on a minimum repro at the moment

cc @ezyang @gchanan @zou3519 @suo