2016-12-14 7 views
0

のプロパティを設定するには、私はいつもOPAL-どのように分析(OPALのソースコード内のeg.CHADemo)を実行している間にプロジェクト

former question
[warn][OPAL] the property org.opalj.threads.CPUBoundTasks is unspecified 

よう警告します、それは共通のconfigファイルを示唆しました/src/main/resources/reference.confの下にプロジェクトを作成します。だから、ファイルにフォローラインを追加しようとするが、それでも同じ警告が出る。

ほかに
org.opalj.threads{ 
    CPUBoundTasks = "8" 
    IOBoundTasks = "8" 
} 

、私は私のプロジェクトにライブラリとしてOPALをインポートして、私のプロジェクトの「/ srcに/メイン/リソース/」でreference.confを作成しようとしたとき。私は同じ問題を抱えています。

答えて

0

これらの値は、プロジェクトのコンパイル時に考慮される構成値で構成されます。必要なファイルは、OPALのルートディレクトリにあります。

// 
// Optional configuration settings specific to each developers machine. 
// 

// If your CPU uses hyperthreading, it is recommended to specify the 
// number of physical cores and the number of hyperthreaded cores; 
// this will spead up the overall execution. 
    javaOptions in ThisBuild ++= Seq(
"-Dorg.opalj.threads.CPUBoundTasks=16", // Number of physical (not   hyperthreaded) cores/CPUs 
"-Dorg.opalj.threads.IOBoundTasks=32" // Number of (hyperthreaded) cores * 1,5 
) 

// If you want to disable assertions, uncomment the following line. 
// Assertions are heavily used throughout OPAL and have a 
// signifcant performance impact. However, at development time it is 
// HIGHLY recommend to turn on assertions! 
//scalacOptions in ThisBuild += "-Xdisable-assertions" 

// 
//scalacOptions in ThisBuild -= "-Ywarn-unused-import" 
//scalacOptions in ThisBuild -= "-Ywarn-unused" 

あなたは、使用済みのコア数を設定したファイル名から.TEMPLATEを削除し、あなたのニーズに値を調整する場合は:あなたは次のように表示されますlocal.sbt.templateファイルを開くと。その後、OPALを再構築する必要があります。

+0

ありがとうございました。 –

関連する問題