mirror of
https://github.com/NVIDIA/cuda-samples.git
synced 2026-01-09 11:27: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;
|
||||||
|
|
||||||
|
|||||||
@ -23,7 +23,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"args": [
|
"args": [
|
||||||
"../cuda-shared-memory/extern_shared_memory.ll"
|
"../cuda-shared-memory/extern_shared_memory.ll"
|
||||||
],
|
],
|
||||||
"description": "cuda-shared-memory extern_shared_memory test"
|
"description": "cuda-shared-memory extern_shared_memory test"
|
||||||
},
|
},
|
||||||
@ -36,7 +36,7 @@
|
|||||||
{
|
{
|
||||||
"args": [
|
"args": [
|
||||||
"../syscalls/vprintf.ll"
|
"../syscalls/vprintf.ll"
|
||||||
],
|
],
|
||||||
"description": "syscalls vprintf test"
|
"description": "syscalls vprintf test"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user