Re: [Yade-users] [Question #703320]: Confusion about learning code in CohesiveFrictionalContactLaw.cpp

2022-09-29 Thread xuanshenyu
Question #703320 on Yade changed:
https://answers.launchpad.net/yade/+question/703320

Status: Answered => Solved

xuanshenyu confirmed that the question is solved:
Thanks for Jan's generous help, this is a great forum. My problem has
been solved!

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


[Yade-users] [Question #703335]: Setting Up GPU

2022-09-29 Thread Nima Goudarzi
New question #703335 on Yade:
https://answers.launchpad.net/yade/+question/703335

Hi there,

I'm trying to set up GPU following 
https://yade-dev.gitlab.io/trunk/GPUacceleration.html#install-suitesparse. I 
have encountered doing so. Two main issues are:

1- After installation of Cuda, the samples folder is not generated within the 
Cuda directory (/usr/local/Cuda/Samples). Therefore, I have to download the 
Cuda Samples by git clone https://github.com/NVIDIA/cuda-samples.git and then 
compiling within Samples folder. Running ./deviceQuery 
inside'/Samples/1_Utilities/deviceQuery' seems satisfactory giving:
./deviceQuery Starting...

 CUDA Device Query (Runtime API) version (CUDART static linking)

Detected 1 CUDA Capable device(s)

Device 0: "Quadro P2200"
  CUDA Driver Version / Runtime Version  11.7 / 11.7
  CUDA Capability Major/Minor version number:6.1
  Total amount of global memory: 5051 MBytes (5296029696 bytes)
  (010) Multiprocessors, (128) CUDA Cores/MP:1280 CUDA Cores
  GPU Max Clock rate:1493 MHz (1.49 GHz)
  Memory Clock rate: 5005 Mhz
  Memory Bus Width:  160-bit
  L2 Cache Size: 1310720 bytes
  Maximum Texture Dimension Size (x,y,z) 1D=(131072), 2D=(131072, 
65536), 3D=(16384, 16384, 16384)
  Maximum Layered 1D Texture Size, (num) layers  1D=(32768), 2048 layers
  Maximum Layered 2D Texture Size, (num) layers  2D=(32768, 32768), 2048 layers
  Total amount of constant memory:   65536 bytes
  Total amount of shared memory per block:   49152 bytes
  Total shared memory per multiprocessor:98304 bytes
  Total number of registers available per block: 65536
  Warp size: 32
  Maximum number of threads per multiprocessor:  2048
  Maximum number of threads per block:   1024
  Max dimension size of a thread block (x,y,z): (1024, 1024, 64)
  Max dimension size of a grid size(x,y,z): (2147483647, 65535, 65535)
  Maximum memory pitch:  2147483647 bytes
  Texture alignment: 512 bytes
  Concurrent copy and kernel execution:  Yes with 2 copy engine(s)
  Run time limit on kernels: Yes
  Integrated GPU sharing Host Memory:No
  Support host page-locked memory mapping:   Yes
  Alignment requirement for Surfaces:Yes
  Device has ECC support:Disabled
  Device supports Unified Addressing (UVA):  Yes
  Device supports Managed Memory:Yes
  Device supports Compute Preemption:Yes
  Supports Cooperative Kernel Launch:Yes
  Supports MultiDevice Co-op Kernel Launch:  Yes
  Device PCI Domain ID / Bus ID / location ID:   0 / 101 / 0
  Compute Mode:
 < Default (multiple host threads can use ::cudaSetDevice() with device 
simultaneously) >

deviceQuery, CUDA Driver = CUDART, CUDA Driver Version = 11.7, CUDA Runtime 
Version = 11.7, NumDevs = 1
Result = PASS

Is this the right approach for testing the Cuda installation for the most 
recent version? I'm not aware if the Samples folder had been generated for 
eralier versions inside the Cuda directory itself.

I, then, run 
sudo apt-get install libopenblas-dev liblapack-dev

2- Following the instruction, I download the latest version of SuiteSparse 
package (5.13.0) and extracted it to usr/local folder using sudo (Question: Is 
extracting to usr/local mandatory?). Therefore, there is a  
/usr/local/SuiteSparse-5.13.0 directory from which I run make config within 
this directory gives:


SuiteSparse package compilation options:

 
SuiteSparse Version:  5.13.0
SuiteSparse top folder:   /usr/local/SuiteSparse-5.13.0
Package:  LIBRARY= PackageNameWillGoHere
Version:  VERSION= x.y.z
SO version:   SO_VERSION=  x
System:   UNAME=   Linux
Install directory:INSTALL= /usr/local/SuiteSparse-5.13.0
Install libraries in: INSTALL_LIB= /usr/local/SuiteSparse-5.13.0/lib
Install include files in: INSTALL_INCLUDE= /usr/local/SuiteSparse-5.13.0/include
Install documentation in: INSTALL_DOC= 
/usr/local/SuiteSparse-5.13.0/share/doc/suitesparse-5.13.0
Optimization level:   OPTIMIZATION=-O3
parallel make jobs:   JOBS=8
BLAS library: BLAS=-lblas
LAPACK library:   LAPACK=  -llapack
Other libraries:  LDLIBS=  -lm -lrt
static library:   AR_TARGET=   PackageNameWillGoHere.a
shared library (full):SO_TARGET=   PackageNameWillGoHere.so.x.y.z
shared library (main):SO_MAIN= PackageNameWillGoHere.so.x
shared library (short):   SO_PLAIN=

Re: [Yade-users] [Question #703319]: How to get Kdevelop to work properly

2022-09-29 Thread Manfred Hampl
Question #703319 on Yade changed:
https://answers.launchpad.net/yade/+question/703319

Manfred Hampl posted a new comment:
https://code.visualstudio.com/docs/setup/linux

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #703319]: How to get Kdevelop to work properly

2022-09-29 Thread Wang Yu
Question #703319 on Yade changed:
https://answers.launchpad.net/yade/+question/703319

Status: Answered => Open

Wang Yu is still having a problem:
Hi, Robert

Actually I have seen that you mentioned VSCode in your answer to this
question [1].

I'd love to use VSCode for code writing and debugging. In fact, I
already use VSCode in Windows, but just to read code. I don't know how
to use VSCode in Ubuntu to debug Yade. Can you give me some guidance?

Thanks a lot
Yu

[1]https://answers.launchpad.net/yade/+question/702251

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #703319]: How to get Kdevelop to work properly

2022-09-29 Thread Robert Caulk
Question #703319 on Yade changed:
https://answers.launchpad.net/yade/+question/703319

Status: Open => Answered

Robert Caulk proposed the following answer:
KDevelop is obsolete.

Consider using VSCode instead.

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #703319]: How to get Kdevelop to work properly

2022-09-29 Thread Wang Yu
Question #703319 on Yade changed:
https://answers.launchpad.net/yade/+question/703319

Status: Answered => Open

Wang Yu is still having a problem:
Hi, Manfred

I'm sorry I didn't express clearly.

I was using Ubuntu 18.04 in the past, I guessed whether kdevelop would
adapt better in the old version, so I used the 16.04. But as you said, I
just installed Kdevelop 5.5.0 in Ubuntu 20.04 with the 'sudo apt-get
install kdevelop' command. When I try to import the yade-trunk project,
I still get error:

in the GUI-
Failed to configure project 'trunk' (error message: Configuration failed.). As 
a result, KDevelop's code understanding will likely be broken.

To fix this issue, please ensure that the project's CMakeLists.txt files
are correct, and KDevelop is configured to use the correct CMake version
and settings. Then right-click the project item in the projects tool
view and click 'Reload'.

in the terminal
kdevplatform.serialization: "The data-repository at 
/home/wangyu/.cache/kdevduchain/kdevelop-{e496a164-0d03-4699-b26d-27806e8f4ae2} 
has to be cleared."
Invalid Context= "Legacy" line for icon theme:  
"/usr/share/icons/Yaru/16x16/legacy/"
Invalid Context= "Legacy" line for icon theme:  
"/usr/share/icons/Yaru/22x22/legacy/"
Invalid Context= "Legacy" line for icon theme:  
"/usr/share/icons/Yaru/24x24/legacy/"
Invalid Context= "Legacy" line for icon theme:  
"/usr/share/icons/Yaru/32x32/legacy/"
Invalid Context= "Legacy" line for icon theme:  
"/usr/share/icons/Yaru/48x48/legacy/"
Invalid Context= "Apps" line for icon theme:  
"/usr/share/icons/Yaru/256x256@2x/apps/"
Invalid Context= "Mimetypes" line for icon theme:  
"/usr/share/icons/Yaru/256x256@2x/mimetypes/"
Invalid Context= "Mimetypes" line for icon theme:  
"/usr/share/icons/Yaru/scalable/mimetypes/"
Invalid Context= "Legacy" line for icon theme:  
"/usr/share/icons/Adwaita/8x8/legacy/"
Invalid Context= "Legacy" line for icon theme:  
"/usr/share/icons/Adwaita/16x16/legacy/"
Invalid Context= "UI" line for icon theme:  "/usr/share/icons/Adwaita/16x16/ui/"
Invalid Context= "Legacy" line for icon theme:  
"/usr/share/icons/Adwaita/22x22/legacy/"
Invalid Context= "Legacy" line for icon theme:  
"/usr/share/icons/Adwaita/24x24/legacy/"
Invalid Context= "UI" line for icon theme:  "/usr/share/icons/Adwaita/24x24/ui/"
Invalid Context= "Legacy" line for icon theme:  
"/usr/share/icons/Adwaita/32x32/legacy/"
Invalid Context= "UI" line for icon theme:  "/usr/share/icons/Adwaita/32x32/ui/"
Invalid Context= "Legacy" line for icon theme:  
"/usr/share/icons/Adwaita/48x48/legacy/"
Invalid Context= "UI" line for icon theme:  "/usr/share/icons/Adwaita/48x48/ui/"
Invalid Context= "Legacy" line for icon theme:  
"/usr/share/icons/Adwaita/64x64/legacy/"
Invalid Context= "UI" line for icon theme:  "/usr/share/icons/Adwaita/64x64/ui/"
Invalid Context= "Legacy" line for icon theme:  
"/usr/share/icons/Adwaita/96x96/legacy/"
Invalid Context= "UI" line for icon theme:  "/usr/share/icons/Adwaita/96x96/ui/"
Invalid Context= "Legacy" line for icon theme:  
"/usr/share/icons/Adwaita/256x256/legacy/"
Invalid Context= "Legacy" line for icon theme:  
"/usr/share/icons/Adwaita/512x512/legacy/"
Invalid Context= "Legacy" line for icon theme:  
"/usr/share/icons/Adwaita/scalable/legacy/"
Invalid Context= "UI" line for icon theme:  
"/usr/share/icons/Adwaita/scalable/ui/"
Qt WebEngine seems to be initialized from a plugin. Please set 
Qt::AA_ShareOpenGLContexts using QCoreApplication::setAttribute before 
constructing QGuiApplication.
Connecting to deprecated signal 
QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
kdevplatform.util: Path::init: invalid/unsupported Path encountered:  
http://clang-tidy
qrc:/qml/Develop.qml:139:21: QML Heading: Binding loop detected for property 
"font.pointSize"
qrc:/qml/area_code.qml:87:9: QML Heading: Binding loop detected for property 
"font.pointSize"
qrc:/qml/area_code.qml:63:9: QML Heading: Binding loop detected for property 
"font.pointSize"
qrc:/qml/storage.js:24: TypeError: Cannot call method 'openDatabaseSync' of 
undefined
qrc:/qml/storage.js:24: TypeError: Cannot call method 'openDatabaseSync' of 
undefined
Couldn't start kuiserver from org.kde.kuiserver.service: 
QDBusError("org.freedesktop.DBus.Error.ServiceUnknown", "The name 
org.kde.kuiserver was not provided by any .service files")
kdevelop.plugins.git: couldn't find the git root for 
QUrl("file:///home/wangyu/yade/trunk")
kdevelop.plugins.cmake: couldn't open CMakeCache.txt 
"/home/wangyu/yade/trunk/build/CMakeCache.txt"
kdevelop.plugins.cmake: error!! 
QJsonObject({"cookie":"","errorMessage":"Configuration 
failed.","inReplyTo":"configure","type":"error"})
kdevelop.plugins.cmake: couldn't load project successfully "trunk"
Unsupported return type 1123 QAction* in method "addAction"
Skipped method "setDefaultShortcuts" : Pointers are not supported: QAction*
Hspell: can't open /usr/share/hspell/hebrew.wgz.sizes.
sonnet.plugins.hspell: 

Re: [Yade-users] [Question #703157]: How to Include Rolling Resistance Based on Capillary and Lubrication Laws

2022-09-29 Thread Launchpad Janitor
Question #703157 on Yade changed:
https://answers.launchpad.net/yade/+question/703157

Status: Open => Expired

Launchpad Janitor expired the question:
This question was expired because it remained in the 'Open' state
without activity for the last 15 days.

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #703319]: How to get Kdevelop to work properly

2022-09-29 Thread Manfred Hampl
Question #703319 on Yade changed:
https://answers.launchpad.net/yade/+question/703319

Status: Open => Answered

Manfred Hampl proposed the following answer:
"Whether I follow the ‘’sudo apt-get install kdevelop” command ...
errors will occur."

Which errors? Please provide the full text!

Why are you using old releases of the operating system? It could be
worth trying to use Ubuntu 20.04 or 22.04 instead of the obsolete 16.04
release.

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp