test/cuda/test_tc_mapper_bugs.cc
// This used to complain about INVALID_PTX but really was using more shared
// memory than available.  Plan a conservative buffer when mixing reductions
// with shared memory.
This used to complain about INVALID_PTX but really was using more shared
memory than available.  Plan a conservative buffer when mixing reductions
with shared memory.
This used to complain about INVALID_PTX but really was using more shared memory than available . Plan a conservative buffer when mixing reductions with shared memory .
TEST_F(C3_128_1000_1024, InvalidPtx) {
  Init();
  auto options = tc::CudaMappingOptions::makeNaiveCudaMappingOptions()
                     .outerScheduleFusionStrategy(tc::FusionStrategy::Max)
                     .outerScheduleAllowSkewing(false)
                     .outerSchedulePositiveOrthant(true)
                     .intraTileScheduleFusionStrategy(tc::FusionStrategy::Min)
                     .intraTileScheduleAllowSkewing(false)
                     .intraTileSchedulePositiveOrthant(true)
                     .tile(8, 500)
                     .mapToThreads(125)
                     .mapToBlocks(128, 1000, 500)
                     .unroll(256)
                     .tileImperfectlyNested(false)
                     .useSharedMemory(true)
                     .usePrivateMemory(true)
                     .unrollCopyShared(true)
                     .matchLibraryCalls(true);
  Check(options);
}
TEST_F ( C3_128_1000_1024 , InvalidPtx ) { Init ( ) ; auto options = tc :: CudaMappingOptions :: makeNaiveCudaMappingOptions ( ) . outerScheduleFusionStrategy ( tc :: FusionStrategy :: Max ) . outerScheduleAllowSkewing ( false ) . outerSchedulePositiveOrthant ( true ) . intraTileScheduleFusionStrategy ( tc :: FusionStrategy :: Min ) . intraTileScheduleAllowSkewing ( false ) . intraTileSchedulePositiveOrthant ( true ) . tile ( 8 , 500 ) . mapToThreads ( 125 ) . mapToBlocks ( 128 , 1000 , 500 ) . unroll ( 256 ) . tileImperfectlyNested ( false ) . useSharedMemory ( true ) . usePrivateMemory ( true ) . unrollCopyShared ( true ) . matchLibraryCalls ( true ) ; Check ( options ) ; }
This used to complain about INVALID_PTX but really was using more shared
memory than available.
This used to complain about INVALID_PTX but really was using more shared memory than available .