Skip to content

Commit

Permalink
feat: initial
Browse files Browse the repository at this point in the history
  • Loading branch information
grzuy committed Oct 25, 2023
1 parent 7cf55a9 commit 1992436
Show file tree
Hide file tree
Showing 24 changed files with 5,933 additions and 18 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@ candlex-*.tar

# Temporary files, for example, from tests.
/tmp/

# Shared objects build by Rust.
*.so
17 changes: 17 additions & 0 deletions config/config.exs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import Config

enable_cuda =
case System.get_env("CUDA") do
nil -> System.find_executable("nvcc") && System.find_executable("nvidia-smi")
"false" -> false
_ -> true
end

crate_features =
if enable_cuda do
[:cuda]
else
[]
end

config :candlex, crate_features: crate_features
13 changes: 0 additions & 13 deletions lib/candlex.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,4 @@ defmodule Candlex do
@moduledoc """
Documentation for `Candlex`.
"""

@doc """
Hello world.
## Examples
iex> Candlex.hello()
:world
"""
def hello do
:world
end
end
Loading

0 comments on commit 1992436

Please sign in to comment.