CUTLASS 3.5.0 (#1411)
This commit is contained in:
@@ -184,7 +184,7 @@ public:
|
||||
// Determine SMEM requirements and waive if not satisfied
|
||||
//
|
||||
|
||||
int smem_size = int(sizeof(typename Conv3d::UnderlyingKernel::SharedStorage));
|
||||
size_t smem_size = sizeof(typename Conv3d::UnderlyingKernel::SharedStorage);
|
||||
|
||||
cudaDeviceProp properties;
|
||||
int device_idx;
|
||||
@@ -662,6 +662,47 @@ bool TestAllConv3d(
|
||||
return passed;
|
||||
}
|
||||
|
||||
template <typename ImplicitGemm>
|
||||
bool TestSpecificConv3d(
|
||||
const Conv3dProblemVector & problem_sizes) {
|
||||
|
||||
bool passed = true;
|
||||
|
||||
//
|
||||
// Testbed object
|
||||
//
|
||||
|
||||
TestbedConv3d<ImplicitGemm> testbed;
|
||||
|
||||
// Sweep conv3d problem sizes (split-k-mode=kSerial, split-k-slice=1, alpha=1.0, beta=0.0)
|
||||
for(auto conv_problem : problem_sizes) {
|
||||
|
||||
//
|
||||
// Test
|
||||
//
|
||||
|
||||
// test mode = xcross
|
||||
passed = testbed.run(
|
||||
conv_problem,
|
||||
cutlass::conv::SplitKMode::kSerial);
|
||||
|
||||
if (!passed) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// test mode = convolution
|
||||
passed = testbed.run(
|
||||
conv_problem.reset_mode(cutlass::conv::Mode::kConvolution),
|
||||
cutlass::conv::SplitKMode::kSerial);
|
||||
|
||||
if (!passed) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
} // namespace device
|
||||
|
||||
Reference in New Issue
Block a user