mirror of
https://github.com/NVIDIA/cuda-samples.git
synced 2026-01-09 20:07:49 +08:00
Revert the change for LargeKernelParameter and update code format check
This commit is contained in:
parent
9d703d090b
commit
036638b713
@ -100,18 +100,6 @@ int main()
|
|||||||
int rc;
|
int rc;
|
||||||
cudaFree(0);
|
cudaFree(0);
|
||||||
|
|
||||||
// Check compute capability - large kernel parameters require SM 7.0+
|
|
||||||
cudaDeviceProp deviceProp;
|
|
||||||
int devID;
|
|
||||||
checkCudaErrors(cudaGetDevice(&devID));
|
|
||||||
checkCudaErrors(cudaGetDeviceProperties(&deviceProp, devID));
|
|
||||||
|
|
||||||
if (deviceProp.major < 7) {
|
|
||||||
printf("LargeKernelParameter requires SM 7.0 or higher. Exiting...\n");
|
|
||||||
printf("Current device: %s (SM %d.%d)\n", deviceProp.name, deviceProp.major, deviceProp.minor);
|
|
||||||
exit(EXIT_WAIVED);
|
|
||||||
}
|
|
||||||
|
|
||||||
param_t p;
|
param_t p;
|
||||||
param_large_t p_large;
|
param_large_t p_large;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user