Skip to content
This repository was archived by the owner on Mar 12, 2021. It is now read-only.

Commit 68edbfc

Browse files
committed
Add a header to warn against edits.
1 parent f8e6057 commit 68edbfc

15 files changed

+81
-38
lines changed

res/wrap/wrap.jl

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,17 @@ function process(name, headers...; kwargs...)
459459
end
460460

461461

462+
## header
463+
464+
text = """
465+
# Automatically-generated headers for $name
466+
#
467+
# DO NOT EDIT THIS FILE DIRECTLY.
468+
469+
470+
""" * replace(text, "\n\n\n" => "\n\n")
471+
472+
462473
write(file, text)
463474
end
464475

src/blas/libcublas.jl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1+
# Automatically-generated headers for cublas
2+
#
3+
# DO NOT EDIT THIS FILE DIRECTLY.
4+
5+
16
# Julia wrapper for header: cublas_v2.h
27
# Automatically generated using Clang.jl
38

4-
59
@checked function cublasCreate_v2(handle)
610
initialize_api()
711
@runtime_ccall((:cublasCreate_v2, libcublas()), cublasStatus_t,
@@ -2351,7 +2355,6 @@ end
23512355
# Julia wrapper for header: cublasXt.h
23522356
# Automatically generated using Clang.jl
23532357

2354-
23552358
@checked function cublasXtCreate(handle)
23562359
initialize_api()
23572360
@runtime_ccall((:cublasXtCreate, libcublas()), cublasStatus_t,

src/blas/libcublas_common.jl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
# Automatically generated using Clang.jl
1+
# Automatically-generated headers for cublas
2+
#
3+
# DO NOT EDIT THIS FILE DIRECTLY.
4+
25

6+
# Automatically generated using Clang.jl
37

48
const CUBLAS_VER_MAJOR = 10
59
const CUBLAS_VER_MINOR = 2
@@ -106,7 +110,6 @@ end
106110
CUBLAS_TENSOR_OP_MATH = 1
107111
end
108112

109-
110113
const cublasDataType_t = cudaDataType
111114
const cublasContext = Cvoid
112115
const cublasHandle_t = Ptr{cublasContext}

src/dnn/libcudnn.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1+
# Automatically-generated headers for cudnn
2+
#
3+
# DO NOT EDIT THIS FILE DIRECTLY.
4+
5+
16
# Julia wrapper for header: cudnn.h
27
# Automatically generated using Clang.jl
38

4-
59
function cudnnGetVersion()
610
@runtime_ccall((:cudnnGetVersion, libcudnn()), Csize_t, ())
711
end

src/dnn/libcudnn_common.jl

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
# Automatically generated using Clang.jl
1+
# Automatically-generated headers for cudnn
2+
#
3+
# DO NOT EDIT THIS FILE DIRECTLY.
4+
25

6+
# Automatically generated using Clang.jl
37

48
const CUDNN_MAJOR = 7
59
const CUDNN_MINOR = 6
@@ -25,7 +29,6 @@ const CUDNN_ATTN_WKIND_COUNT = 8
2529
CUDNN_SEV_INFO = 3
2630
end
2731

28-
2932
const cudnnContext = Cvoid
3033
const cudnnHandle_t = Ptr{cudnnContext}
3134

@@ -46,7 +49,6 @@ const cudnnHandle_t = Ptr{cudnnContext}
4649
CUDNN_STATUS_RUNTIME_FP_OVERFLOW = 13
4750
end
4851

49-
5052
const cudnnRuntimeTag_t = Cvoid
5153

5254
@cenum cudnnErrQueryMode_t::UInt32 begin
@@ -55,7 +57,6 @@ const cudnnRuntimeTag_t = Cvoid
5557
CUDNN_ERRQUERY_BLOCKING = 2
5658
end
5759

58-
5960
const cudnnTensorStruct = Cvoid
6061
const cudnnTensorDescriptor_t = Ptr{cudnnTensorStruct}
6162
const cudnnConvolutionStruct = Cvoid
@@ -179,7 +180,6 @@ end
179180
CUDNN_CONVOLUTION_FWD_ALGO_COUNT = 8
180181
end
181182

182-
183183
struct cudnnConvolutionFwdAlgoPerf_t
184184
algo::cudnnConvolutionFwdAlgo_t
185185
status::cudnnStatus_t
@@ -207,7 +207,6 @@ end
207207
CUDNN_CONVOLUTION_BWD_FILTER_ALGO_COUNT = 7
208208
end
209209

210-
211210
struct cudnnConvolutionBwdFilterAlgoPerf_t
212211
algo::cudnnConvolutionBwdFilterAlgo_t
213212
status::cudnnStatus_t
@@ -234,7 +233,6 @@ end
234233
CUDNN_CONVOLUTION_BWD_DATA_ALGO_COUNT = 6
235234
end
236235

237-
238236
struct cudnnConvolutionBwdDataAlgoPerf_t
239237
algo::cudnnConvolutionBwdDataAlgo_t
240238
status::cudnnStatus_t
@@ -296,7 +294,6 @@ end
296294
CUDNN_SAMPLER_BILINEAR = 0
297295
end
298296

299-
300297
const cudnnDropoutStruct = Cvoid
301298
const cudnnDropoutDescriptor_t = Ptr{cudnnDropoutStruct}
302299

@@ -347,7 +344,6 @@ end
347344
CUDNN_RNN_PADDED_IO_ENABLED = 1
348345
end
349346

350-
351347
const cudnnRNNStruct = Cvoid
352348
const cudnnRNNDescriptor_t = Ptr{cudnnRNNStruct}
353349
const cudnnPersistentRNNPlan = Cvoid
@@ -366,7 +362,6 @@ const cudnnAlgorithmPerformance_t = Ptr{cudnnAlgorithmPerformanceStruct}
366362
CUDNN_SEQDATA_VECT_DIM = 3
367363
end
368364

369-
370365
const cudnnSeqDataStruct = Cvoid
371366
const cudnnSeqDataDescriptor_t = Ptr{cudnnSeqDataStruct}
372367
const cudnnAttnQueryMap_t = UInt32
@@ -399,7 +394,6 @@ end
399394
CUDNN_LOSS_NORMALIZATION_SOFTMAX = 1
400395
end
401396

402-
403397
# FIXME: can't use such a union as the type in a ccall expression
404398
#Algorithm = Union{cudnnConvolutionFwdAlgo_t, cudnnConvolutionBwdFilterAlgo_t, cudnnConvolutionBwdDataAlgo_t, cudnnRNNAlgo_t, cudnnCTCLossAlgo_t}
405399
#struct cudnnAlgorithm_t

src/fft/libcufft.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1+
# Automatically-generated headers for cufft
2+
#
3+
# DO NOT EDIT THIS FILE DIRECTLY.
4+
5+
16
# Julia wrapper for header: cufft.h
27
# Automatically generated using Clang.jl
38

4-
59
@checked function cufftPlan1d(plan, nx, type, batch)
610
initialize_api()
711
@runtime_ccall((:cufftPlan1d, libcufft()), cufftResult,

src/fft/libcufft_common.jl

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
# Automatically generated using Clang.jl
1+
# Automatically-generated headers for cufft
2+
#
3+
# DO NOT EDIT THIS FILE DIRECTLY.
4+
25

6+
# Automatically generated using Clang.jl
37

48
# Skipping MacroDefinition: CUFFTAPI __attribute__ ( ( visibility ( "default" ) ) )
59

@@ -16,7 +20,6 @@ const CUFFT_INVERSE = 1
1620
CUFFT_COMPATIBILITY_FFTW_PADDING = 1
1721
end
1822

19-
2023
const CUFFT_COMPATIBILITY_DEFAULT = CUFFT_COMPATIBILITY_FFTW_PADDING
2124
const MAX_SHIM_RANK = 3
2225

@@ -40,7 +43,6 @@ const MAX_SHIM_RANK = 3
4043
CUFFT_NOT_SUPPORTED = 16
4144
end
4245

43-
4446
const cufftResult = cufftResult_t
4547
const cufftReal = Cfloat
4648
const cufftDoubleReal = Cdouble
@@ -56,7 +58,6 @@ const cufftDoubleComplex = cuDoubleComplex
5658
CUFFT_Z2Z = 105
5759
end
5860

59-
6061
const cufftType = cufftType_t
6162
const cufftCompatibility = cufftCompatibility_t
6263
const cufftHandle = Cint

src/rand/libcurand.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1+
# Automatically-generated headers for curand
2+
#
3+
# DO NOT EDIT THIS FILE DIRECTLY.
4+
5+
16
# Julia wrapper for header: curand.h
27
# Automatically generated using Clang.jl
38

4-
59
@checked function curandCreateGenerator(generator, rng_type)
610
initialize_api()
711
@runtime_ccall((:curandCreateGenerator, libcurand()), curandStatus_t,

src/rand/libcurand_common.jl

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
# Automatically generated using Clang.jl
1+
# Automatically-generated headers for curand
2+
#
3+
# DO NOT EDIT THIS FILE DIRECTLY.
4+
25

6+
# Automatically generated using Clang.jl
37

48
const CURAND_VER_MAJOR = 10
59
const CURAND_VER_MINOR = 1
@@ -23,7 +27,6 @@ const CURAND_VERSION = CURAND_VER_MAJOR * 1000 + CURAND_VER_MINOR * 100 + CURAND
2327
CURAND_STATUS_INTERNAL_ERROR = 999
2428
end
2529

26-
2730
const curandStatus_t = curandStatus
2831

2932
@cenum curandRngType::UInt32 begin
@@ -41,7 +44,6 @@ const curandStatus_t = curandStatus
4144
CURAND_RNG_QUASI_SCRAMBLED_SOBOL64 = 204
4245
end
4346

44-
4547
const curandRngType_t = curandRngType
4648

4749
@cenum curandOrdering::UInt32 begin
@@ -51,7 +53,6 @@ const curandRngType_t = curandRngType
5153
CURAND_ORDERING_QUASI_DEFAULT = 201
5254
end
5355

54-
5556
const curandOrdering_t = curandOrdering
5657

5758
@cenum curandDirectionVectorSet::UInt32 begin
@@ -61,7 +62,6 @@ const curandOrdering_t = curandOrdering
6162
CURAND_SCRAMBLED_DIRECTION_VECTORS_64_JOEKUO6 = 104
6263
end
6364

64-
6565
const curandDirectionVectorSet_t = curandDirectionVectorSet
6666
const curandDirectionVectors32_t = NTuple{32, UInt32}
6767
const curandDirectionVectors64_t = NTuple{64, Culonglong}
@@ -99,5 +99,4 @@ const curandDiscreteDistribution_t = Ptr{curandDiscreteDistribution_st}
9999
CURAND_POISSON = 13
100100
end
101101

102-
103102
const curandMethod_t = curandMethod

src/solver/libcusolver.jl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1+
# Automatically-generated headers for cusolver
2+
#
3+
# DO NOT EDIT THIS FILE DIRECTLY.
4+
5+
16
# Julia wrapper for header: cusolverDn.h
27
# Automatically generated using Clang.jl
38

4-
59
@checked function cusolverGetProperty(type, value)
610
@runtime_ccall((:cusolverGetProperty, libcusolver()), cusolverStatus_t,
711
(libraryPropertyType, Ptr{Cint}),
@@ -2705,7 +2709,6 @@ end
27052709
# Julia wrapper for header: cusolverSp.h
27062710
# Automatically generated using Clang.jl
27072711

2708-
27092712
@checked function cusolverSpCreate(handle)
27102713
initialize_api()
27112714
@runtime_ccall((:cusolverSpCreate, libcusolver()), cusolverStatus_t,

0 commit comments

Comments
 (0)