Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
grudge
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Matt Wala
grudge
Commits
9cd165e8
Commit
9cd165e8
authored
7 years ago
by
Andreas Klöckner
Browse files
Options
Downloads
Patches
Plain Diff
Hack together some install instructions
parent
780f1c0e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/index.rst
+3
-2
3 additions, 2 deletions
doc/index.rst
doc/misc.rst
+69
-14
69 additions, 14 deletions
doc/misc.rst
with
72 additions
and
16 deletions
doc/index.rst
+
3
−
2
View file @
9cd165e8
...
@@ -9,7 +9,9 @@ Welcome to grudge's documentation!
...
@@ -9,7 +9,9 @@ Welcome to grudge's documentation!
Contents:
Contents:
.. toctree::
.. toctree::
:maxdepth: 2
:maxdepth: 2
misc
...
@@ -19,4 +21,3 @@ Indices and tables
...
@@ -19,4 +21,3 @@ Indices and tables
* :ref:`genindex`
* :ref:`genindex`
* :ref:`modindex`
* :ref:`modindex`
* :ref:`search`
* :ref:`search`
This diff is collapsed.
Click to expand it.
doc/misc.rst
+
69
−
14
View file @
9cd165e8
...
@@ -3,28 +3,83 @@
...
@@ -3,28 +3,83 @@
Installation
Installation
============
============
This command should install :mod:`grudge`::
Installing :mod:`grudge`
------------------------
pip install grudge
This set of instructions is intended for 64-bit Linux computers.
MacOS support is in the works.
(Note the extra "."!)
#. Make sure your system has the basics to build software.
You may need to run this with :command:`sudo`.
On Debian derivatives (Ubuntu and many more),
If you don't already have `pip <https://pypi.python.org/pypi/pip>`_,
installing ``build-essential`` should do the trick.
run this beforehand::
curl -O https://raw.github.com/pypa/pip/master/contrib/get-pip.py
Everywhere else, just making sure you have the ``g++`` package should be
python get-pip.py
enough.
For a more manual installation, `download the source
#. Installing `miniconda for Python 3 on 64-bit Linux <https://conda.io/miniconda.html>`_.
<http://pypi.python.org/pypi/grudge>`_, unpack it, and say::
python setup.py install
#. ``export CONDA=/WHERE/YOU/INSTALLED/miniconda3``
You may also clone its git repository:
:
If you accepted the default location, this should work
:
git clone --recursive git://github.com/inducer/grudge
``export CONDA=$HOME/miniconda3``
git clone --recursive http://git.tiker.net/trees/grudge.git
#. ``$CONDA/bin/conda create -n dgfem``
#. ``source $CONDA/bin/activate dgfem``
#. ``conda config --add channels conda-forge``
#. ``conda install git pip pocl islpy pyopencl``
#. Type the following command::
hash -r; for i in pymbolic cgen genpy modepy pyvisfile loopy meshmode dagrt leap grudge; do python -m pip install git+https://gitlab.tiker.net/inducer/$i.git; done
Next time you want to use `grudge`, just run the following command::
source /WHERE/YOU/INSTALLED/miniconda3/bin/activate dgfem
You may also like to add this to a startup file (like :file:`$HOME/.bashrc`) or create an alias for it.
After this, you should be able to run the `tests <https://gitlab.tiker.net/inducer/grudge/tree/master/test>`_
or `examples <https://gitlab.tiker.net/inducer/grudge/tree/master/examples>`_.
Troubleshooting the Installation
--------------------------------
/usr/bin/ld: cannot find -lstdc++
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Try::
sudo apt-get install libstdc++-6-dev
to install the missing C++ development package.
No CL platforms found/unknown error -1001
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If you get::
pyopencl.cffi_cl.LogicError: clGetPlatformIDs failed: <unknown error -1001>
try::
conda update ocl-icd pocl
(This indicates that the OpenCL driver loader didn't find any drivers, or the
drivers were themselves missing dependencies.)
Assertion 'error == 0'
~~~~~~~~~~~~~~~~~~~~~~~
If you get::
/opt/conda/conda-bld/home_1484016200338/work/pocl-0.13/lib/CL/devices/common.c:108:
llvm_codegen: Assertion 'error == 0 ' failed. Aborted (core dumped)
then you're likely out of memory.
User-visible Changes
User-visible Changes
====================
====================
...
...
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