Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pystencils
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pycodegen
pystencils
Commits
23e8e04b
Commit
23e8e04b
authored
5 years ago
by
Stephan Seitz
Browse files
Options
Downloads
Patches
Plain Diff
Skip llvm cuda compilation if llc not in $PATH
parent
8d22fddf
No related branches found
No related tags found
1 merge request
!53
Compile CUDA using the LLVM backend
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pystencils_tests/test_jacobi_llvm.py
+3
-0
3 additions, 0 deletions
pystencils_tests/test_jacobi_llvm.py
with
3 additions
and
0 deletions
pystencils_tests/test_jacobi_llvm.py
+
3
−
0
View file @
23e8e04b
import
numpy
as
np
import
numpy
as
np
import
pytest
from
pystencils
import
Assignment
,
Field
,
show_code
from
pystencils
import
Assignment
,
Field
,
show_code
from
pystencils.cpu.cpujit
import
get_llc_command
from
pystencils.llvm
import
create_kernel
,
make_python_function
from
pystencils.llvm
import
create_kernel
,
make_python_function
from
pystencils.llvm.llvmjit
import
generate_and_jit
from
pystencils.llvm.llvmjit
import
generate_and_jit
...
@@ -30,6 +32,7 @@ def test_jacobi_fixed_field_size():
...
@@ -30,6 +32,7 @@ def test_jacobi_fixed_field_size():
np
.
testing
.
assert_almost_equal
(
error
,
0.0
)
np
.
testing
.
assert_almost_equal
(
error
,
0.0
)
@pytest.mark.skipif
(
not
get_llc_command
(),
reason
=
"
Tests requires llc in $PATH
"
)
def
test_jacobi_fixed_field_size_gpu
():
def
test_jacobi_fixed_field_size_gpu
():
size
=
(
30
,
20
)
size
=
(
30
,
20
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment