teachcompute.__init__.py

check_installation

teachcompute.check_installation(val: bool = False, verbose: bool = False)[source][source]

Quickly checks the installation works.

Paramètres:
  • val – checks that a couple of functions in submodule validation are working

  • verbose – prints out which verifications is being processed

compiled_with_cuda

teachcompute.compiled_with_cuda() bool[source][source]

Checks it was compiled with CUDA.

cuda_version

teachcompute.cuda_version() str[source][source]

Tells which version of CUDA was used to build the CUDA extensions.

cuda_version_int

teachcompute.cuda_version_int() tuple[source][source]

Tells which version of CUDA was used to build the CUDA extensions. It returns (0, 0) if CUDA is not present.

get_cxx_flags

teachcompute.get_cxx_flags() str[source][source]

Returns CXX_FLAGS.

get_stdcpp

teachcompute.get_stdcpp() int[source][source]

Returns CMAKE_CXX_STANDARD.

has_cuda

teachcompute.has_cuda() bool[source][source]

Tells if cuda is available.